Commit 21df2adc authored by Dan Lipsa's avatar Dan Lipsa
Browse files

Change the default compression level for PNG to 5.

The available range is 0..9. Recommendation from
'png_set_compression_level - Linux Standard Base' say 3..6 perform as
well as 9 and do considerably fewer calculations.

Change-Id: Ib2a8e651bd570be13a0d847f61dca6f4b41b74ee
parent 0b7f6e11
...@@ -30,7 +30,7 @@ vtkPNGWriter::vtkPNGWriter() ...@@ -30,7 +30,7 @@ vtkPNGWriter::vtkPNGWriter()
{ {
this->FileLowerLeft = 1; this->FileLowerLeft = 1;
this->FileDimensionality = 2; this->FileDimensionality = 2;
this->CompressionLevel = 0; this->CompressionLevel = 5;
this->WriteToMemory = 0; this->WriteToMemory = 0;
this->Result = 0; this->Result = 0;
this->TempFP = 0; this->TempFP = 0;
......
...@@ -45,7 +45,7 @@ public: ...@@ -45,7 +45,7 @@ public:
// The range is 0-9, with 0 meaning no compression // The range is 0-9, with 0 meaning no compression
// corresponding to the largest file size, and 9 meaning // corresponding to the largest file size, and 9 meaning
// best compression, corresponding to the smallest file size. // best compression, corresponding to the smallest file size.
// The default is 0. // The default is 5.
vtkSetClampMacro(CompressionLevel, int, 0, 9); vtkSetClampMacro(CompressionLevel, int, 0, 9);
vtkGetMacro(CompressionLevel, int); vtkGetMacro(CompressionLevel, int);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment