GpsMid icons or how to convert svg to png with ImageMagick

I'm working on a new set of icons for GpsMid. If you're curious how they look check here. The full set of svg and pngs and a sample GpsMid midlet is here. The pngs were created using"Export as bitmap" function in Inkscape, but now I found a better solution: ImageMagick. I started with simple:

convert i_about.svg i_about.png

but the generated icon was too small:


i_about.png 39x39



I wanted 100x100 pixels with transparent background. Next I tried: 

convert i_about.svg -extent 100x100 i_about.png

but again, the result was not good enough:

i_about_extent_100x100








Adding -geometry helped a little bit:

i_about_geometry_100x100







The image is very fuzzy. To solve it we have to add -density option. 


i_about_geometry_density_100x100






Now it looks quite good except for the missing piece - a transparent background. "-background none" solves the last issue: 


convert -density 1000x1000 -background none i_about.svg -geometry 100x100 i_about.png 


i_about_geometry_density_background_100x100







This is my perfect ;-) icon for GpsMid!

They posted on the same topic

Trackback URL : http://blog.firszt.eu/index.php?trackback/3

This post's comments feed