<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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.<br>
<br>
On 09/04/2012 09:37 AM, Joe Borġ wrote:
<blockquote
cite="mid:CAFFYk1W=BpxrfvACpf5LUkrurCvZ0OQApU5dbgc7CG5XNx72DA@mail.gmail.com"
type="cite">Would this be an easy feature to add? Running PNG
optimisation per image will take a very long time.<br clear="all">
<br clear="all">
<br>
Regards,<br>
Joseph David Borġ <br>
<a moz-do-not-send="true" href="http://www.jdborg.com"
target="_blank">http://www.jdborg.com</a><br>
<br>
<br>
<div class="gmail_quote">On 4 September 2012 16:09, Burlen Loring
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:bloring@lbl.gov" target="_blank">bloring@lbl.gov</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> Hi Joseph,<br>
<br>
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.<br>
<br>
Burlen
<div>
<div class="h5"><br>
<br>
On 09/04/2012 06:16 AM, Joe Borġ wrote: </div>
</div>
<blockquote type="cite">
<div>
<div class="h5">I'm trying to reduce the size of the
screenshots made in batch. Using trace, I found<br>
<br>
<span style="font-family: courier new,monospace;">view
= GetRenderView()<br>
view.CompressorConfig = 'vtkZlibImageCompressor 0 9
4 0'<br>
WriteImage('test.png')<br>
</span><br>
...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.<br>
<br>
I'm not sure if it's the command or the compression
lib that are wrong.<br>
<br clear="all">
<br>
Regards,<br>
Joseph David Borġ <br>
<a moz-do-not-send="true" href="http://www.jdborg.com"
target="_blank">http://www.jdborg.com</a><br>
</div>
</div>
<pre><fieldset></fieldset>
_______________________________________________
Powered by <a moz-do-not-send="true" href="http://www.kitware.com" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at <a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a moz-do-not-send="true" href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a>
Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
</body>
</html>