[Paraview] PNG compression when making screenshot

Burlen Loring bloring at lbl.gov
Tue Sep 4 13:26:44 EDT 2012


You should probably investigate first and make sure that it's the 
compression settings that are the issue. It looks to me like vtk png 
writer uses the default compression settings which should be decent. I'm 
wondering if there are some other differences between pv and ensight 
that could account for the difference in the output sizes, eg. number of 
channels, bits per channel, etc... it may be possible to tweak some of 
these upstream from the reader saving you some work. Depending on the 
path you take between investigation, modifying vtk, modifying paraview 
and testing the changes there could be a good chunk of work involved.

On 09/04/2012 09:37 AM, Joe Borġ wrote:
> Would this be an easy feature to add?  Running PNG optimisation per 
> image will take a very long time.
>
>
> Regards,
> Joseph David Borġ
> http://www.jdborg.com
>
>
> On 4 September 2012 16:09, Burlen Loring <bloring at lbl.gov 
> <mailto:bloring at lbl.gov>> wrote:
>
>     Hi Joseph,
>
>     Those settings you mention affect the image during transfer from
>     the server to the client. They are used to fine tune remote
>     rendering performance. Unfortunately the vtkPNGWriter does not
>     expose any options for tuning compression.
>
>     Burlen
>
>
>     On 09/04/2012 06:16 AM, Joe Borġ wrote:
>>     I'm trying to reduce the size of the screenshots made in batch. 
>>     Using trace, I found
>>
>>     view = GetRenderView()
>>     view.CompressorConfig = 'vtkZlibImageCompressor 0 9 4 0'
>>     WriteImage('test.png')
>>
>>     ...but they're the same size with and without the compression. 
>>     The dimension is 1700x900 and I'm getting 1.4MB per image.  When
>>     I make a similar image in Ensight, I can use the max compression
>>     setting to get the image down to 400KB.
>>
>>     I'm not sure if it's the command or the compression lib that are
>>     wrong.
>>
>>
>>     Regards,
>>     Joseph David Borġ
>>     http://www.jdborg.com
>>
>>
>>     _______________________________________________
>>     Powered bywww.kitware.com  <http://www.kitware.com>
>>
>>     Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html
>>
>>     Please keep messages on-topic and check the ParaView Wiki at:http://paraview.org/Wiki/ParaView
>>
>>     Follow this link to subscribe/unsubscribe:
>>     http://www.paraview.org/mailman/listinfo/paraview
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120904/fee66ef7/attachment.htm>


More information about the ParaView mailing list