Hi Pierter,
> It seems that Batik suffers from the same issue imagemagick has:
> the image has a very high resolution (32000 x 27000). Imagemagick
> tries to allocate a 5GB file, and fails doing so on windows systems.
This is really a problem with the JPEG codec we use (it needs
the entire source image at once). If you get the source distribution
of Batik in the contrib directory there is a 'tiledTranscoder' that
will encode an SVG to a tiled Tiff image. It doesn't support all the
bells and whistles of the normal trancoders but it works.
For large outputs this is _much_ faster than the normal
encoders. This of course gives you a Tiff not a JPEG but you can
probably chain another tool to convert the Tiff to JPEG (also it's
likely that the code can be adapted to work with the javax.imageio
package in Java 5 to write JPEG's progressively.
"Pieter Jansen" <[EMAIL PROTECTED]> wrote on 08/08/2006 04:17:41 AM:
> On 8/7/06, Pieter Jansen <[EMAIL PROTECTED]> wrote:
>
> > These SVG files are usually around 700KB in size. When using the Batik
> > rasterizer, it takes minutes to create even the lowest quality and
> > smallest JPEG files. If I do not specify a larger memory usage value
> > (java commandline), it exits with an out of memory error.
>
>
> How do I work around something like this?
>
> Pieter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]