Just so you can see what I'm talking about, I've attached the source SVG image as well as the converted PNGs. You can clearly see that the image created with Batik is distorted for some reason, whereas the image created via ImageMagick looks great.
I have Batik 1.5.1 (on Windows 2000) and I used the following command to create the 'test-batik.png' image: "java -jar batik-rasterizer.jar Fire_Station_S2.svg" Any ideas as to why the quality of the png is so poor using Batik verses ImageMagick? I would prefer to use Batik if possible..... ----- Original Message ----- > From: John Parisi > To: [EMAIL PROTECTED] > Sent: Monday, March 29, 2004 9:53 AM > Subject: Poor quality results rasterizing SVG images. > Hi, > I'm trying to convert a 50x50 (pixels) SVG image to a PNG with batik. Using the command line > tool 'batik-rasterizer.jar' to convert a source SVG file to a PNG (or any other format) I get a > choppy looking output image. I get the same result using the PNGTranscoder programatically in a > Java class under Tomcat (Windows 2000). If I set the output image size to 10 times the size of the > original image, say 500x500 (pixels) (or increase the DPI) the resulting image looks pretty good... > until you shrink it back down to 50x50. > I find this puzzling to say the least. If I convert the same 50x50 SVG to a 50x50 PNG via > ImageMagick/JMagick the resulting image is crystal clear. Am I doing something wrong? Has > anyone else experienced this problem? > Regards, > John Parisi
<<attachment: test-imagick.png>>
<<attachment: test-batik.png>>
<<attachment: Fire_Station_S2.svg>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]