xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: any quick fix on java.lang.OutOfMemoryError: Java heap space?
Date Sun, 08 Apr 2007 13:00:32 GMT
Hi Vossler,

Vossler T <vosslertw@gmail.com> wrote on 04/07/2007 06:30:39 AM:

> Recently I tried to batch convert svg to jpeg files,there is a problems, 
> I want to convert image wide and height large than  width 2250 pixel 
> height 2812.5 pixel, the system fail and tell me the error
> messages, How can I change this situation in conf file or something 

   If you add '-Xmx 1024m' before '-jar' it should help a lot.  By default
Java restricts it's self to ~64MB of memory the above tells java it can 
up to ~1Gb of memory.

> I would like to set jpeg about 4800 x 4800 or beyond, here is the 
command I

   If you want to support arbitrarily large output you would need to 
to the TiledTiff transcoder (which would involve writing some java) but 
above should work for the sizes you list above.

> "java -jar batik-rasterizer.jar  -d G:\ -m image/jpeg -w 2250 -h 2812.5 
> 0.8 -dpi 300 E:\svg\*.svg" 

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message