I occasionally use ImageMagick in a script to generate PNGs from SVGs. Here's a sample command:
Code: Select all
convert -density 144 -background none googly-facebook.svg googly-facebook.png
The `-density 144` doubles the size while keeping the image nice and crisp. Here's what identify tells me about it:
Code: Select all
$ identify -verbose googly-facebook-old.png
Image: googly-facebook-old.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 720x720+0+0
Resolution: 144x144
Print size: 5x5
And here's identify, showing the unchanged geometry:
Code: Select all
$ identify -verbose googly-facebook-new.png
Image: googly-facebook-new.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 360x360+0+0
Resolution: 144x144
Print size: 2.5x2.5