Hi Max. hirschberger: > I am trying to use BATIK to create JPG-images from SVG-DOM-trees which are > retrieved from a directory containing svg-files. The images contain mostly > basic geometric shapes (lines, polylines, circles, rectangles and text). The > following code works just fine, unless it comes to really large pictures - > e.g. 800x3500. As one might expect the engine runs out of memory and the > application crashes. > My question: is there any way to solve this problem or at least find an > acceptable workaround that works also for even bigger images up to about > 5000x5000? I am very much looking forward to your answers.
Are you using the -Xmx command line argument to java to set the maximum usable heap memory? The transcoder does need to hold the entire image buffer in memory before writing it out as a JPEG, so if you need a 5000x5000 image, you will need at least 5000 * 5000 * 4 = 100MB of memory to give to java, e.g.: java -Xmx100M MyApp … Cameron -- Cameron McCormack, http://mcc.id.au/ xmpp:[EMAIL PROTECTED] ▪ ICQ 26955922 ▪ MSN [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
