Wiki‎ > ‎

Convert SVG to PNG or JPG

posted Oct 24, 2017, 10:26 AM by Dong Xu
https://stackoverflow.com/questions/9853325/how-to-convert-a-svg-to-a-png-with-image-magick

 

I haven't been able to get good results from ImageMagick in this instance, but Inkscape does a nice job of it on Linux and Windows:

inkscape -z -e test.png -w 1024 -h 1024 test.svg

Here's the result of scaling a 16x16 SVG to a 200x200 PNG using this command:

enter image description here

enter image description here

Just for reference, my Inkscape version (on Ubuntu 12.04) is:

Inkscape 0.48.3.1 r9886 (Mar 29 2012)

and on Windows 7, it is:

Inkscape 0.48.4 r9939 (Dec 17 2012)
Comments