5W site logo 5W - мой домашний сайт-блог с картинками, кино и плюшками.

batch-svg-to-png.txt

##librsvg2-bin or librsvg-apps
cd your-directory-with-the-svgs/
for i in *; do rsvg-convert $i -o `echo $i | sed -e 's/svg$/png/'`; done

#BEST
rsvg -w 1024 -h 1024 infile.svg outfile.png

##########################################################
a similar conversion using inkscape's command line:

cd your-directory-with-the-svgs/
for i in *; do inkscape $i --export-png=`echo $i | sed -e 's/svg$/png/'`; done

#################################################
#imagemagick
convert -background none -size 1024x1024 infile.svg outfile.png
#If you use -resize, the image is fuzzy and the file is much larger.
#or 2
convert -density 1536 -background none -resize 100x100 input.svg output-100.png