Offset when rasterizing SVG to lowres
Posted: 2009-12-03T08:59:24-07:00
Hi All
I am experiencing a strange offset when rasterizing SVG files to low resolutions using ImageMagick 6.5.8. The problem is illustrated below.
I use the following call:
convert -filter blackman -alpha on -depth 8 -background none -resize 100%x100%! redcircle.svg redcircle.png
I've compared with other tools to ensure that what I am expecting is correct. As you can see from the scaled ImageMagick output, there is a topleft offset that become obvious in low resolutions. Since 'convert' ignores '-gravity' and 'geometry offset' wrong parameters that are causing the offset. Am I missing parameters or is this in fact a bug?
SVG Source
http://dl.dropbox.com/u/1760945/redcircle.svg
Org. Rasterized to PNG via Adobe Illustrator CS4:
scaled:
Rasterized to PNG via Batik 1.7 (batik-rasterizer.jar):
scaled:
Rasterized to PNG via ImageMagick-6.5.8-Q16:
scaled:
Thanks in advance!
I am experiencing a strange offset when rasterizing SVG files to low resolutions using ImageMagick 6.5.8. The problem is illustrated below.
I use the following call:
convert -filter blackman -alpha on -depth 8 -background none -resize 100%x100%! redcircle.svg redcircle.png
I've compared with other tools to ensure that what I am expecting is correct. As you can see from the scaled ImageMagick output, there is a topleft offset that become obvious in low resolutions. Since 'convert' ignores '-gravity' and 'geometry offset' wrong parameters that are causing the offset. Am I missing parameters or is this in fact a bug?
SVG Source
http://dl.dropbox.com/u/1760945/redcircle.svg
Org. Rasterized to PNG via Adobe Illustrator CS4:
scaled:
Rasterized to PNG via Batik 1.7 (batik-rasterizer.jar):
scaled:
Rasterized to PNG via ImageMagick-6.5.8-Q16:
scaled:
Thanks in advance!