[Tango-artists] Help with batch converting svg icons

Mathias Brodala info at noctus.net
Wed Mar 28 03:34:55 PDT 2007


Hello Joel.

Joel Calado, 28.03.2007 12:28:
> I'm looking for some kind of script that takes the whole set of .svg
> icons in
> said folder and converts them to .png format, with a determined size (eg
> 48x48).

For this you could use ImageMagick’s convert and a for loop:

$ cd directory
$ mkdir ../48x48
$ for i in *.svg;do convert -resize 48x48 "$i" "../48x48/${i/\.svg$/.png}";done

But be aware that for lower resolutions like 16x16 you actually need specific
SVG graphics with less details.


Regards, Mathias

-- 
debian/rules

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freedesktop.org/archives/tango-artists/attachments/20070328/0cb67353/signature.pgp


More information about the Tango-artists mailing list