Thanks Cameron and Thomas for your hints,

Hi Andreas,

Cameron is correct that just starting the JVM from scratch and loading all the classes (and running the JIT compiler, etc) can easily represent the majority of your rasterizing time. I'll also comment on some of the other points you raise:

ok, then this is something I will definitely look at. I am new to Tomcat but will probably find out how to do it.

And I did not see much difference with using different output formats (png, jpeg, pdf).

  If JPEG is about as fast as PDF the really most of your time
is spent bringing the JVM up.


sounds reasonable

  With the current SVN version of Batik (not the 1.6 release) images
are rasterized at 300dpi.  For many purposes this is a bit high you could
consider lowering the value by setting the KEY_DEVICE_RESOLUTION hint on the PDF transcoder.


yes, 200 dpi might be enough

have the opacity attribute set. I am pretty sure that PDF also supports real transparency. Are you planning to support real transparency in PDF output in the future?

  I don't know that PDF supports 'group' opacity, i.e. multiple
elements that need to be rendered to an offscreen opaquely and then
rendered transparently to the main canvas (but I'm no PDF expert so
perhaps it does).  If you are only using fill or stroke you should
map the opacity attribute to fill-opacity or stroke-opacity it will be
much more efficient in either case (you might also make an artistic decision that setting both is satisfactory for your needs).
I am not a pdf expert either. Would have to ask other people.

sounds like a good approach. Currently, I only need fill opacity. But I set the attribute on the group. Does that matter? Would it be more efficient to set it on the individual elements instead of the group?

Andreas

--
----------------------------------------------
Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093  Zurich, Switzerland

Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: [EMAIL PROTECTED]
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to