I have pretty good luck with the command shown below for JPEG.  Note,
it's very difficult to control the resolution of the output file unless
the SVG contains unit qualifiers on the svg element's width and depth
attributes (other than px, or nothing (which defaults to px)).  "-q
0.99" preserves the image quality as much as possible, which for me is
important since we convert for print, not for online viewing:

 

java -Xms256m -Xmx512m -jar batik-rasterizer.jar -m image/jpeg -q 0.99
-dpi [dpi] -d [output_dir] [input_file [input_file(s)]]

 

 

Jay Baldwin
Application Development Team Leader

***************************************************

Tweddle Litho Company
24700 Maplehurst, Clinton Twp, MI 48036-1336

+1.586.840.1324
http://www.tweddle.com/ <http://www.tweddle.com/> 

 

 

________________________________

From: Saehoon Cheon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 15, 2007 2:09 PM
To: [email protected]
Subject: Export SVG to JPEG, PDF

 

I'd like to export svg drawing to jpeg and pdf file format.

Please let me know how I can do it. Real code example will be great
helpful for me.

 

Thank you in advance.


Reply via email to