Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert SVG file to multiple different size PNG files

I have a logo image in SVG format and I am wondering if theres a way to generate multiple different sized png files.

Eg, I set 20 different width and height and it generates 20 PNG files. It okay if I have to do it 5 images at a time.

I have illustrator installed and cant figure out how to do this on it.

Thanks for all of your help!

like image 249
Mo Beigi Avatar asked Sep 16 '11 09:09

Mo Beigi


People also ask

Are SVGs smaller than PNGs?

SVGs are far smaller in size than PNGs and aren't likely to slow down your computer or website. (However, very detailed designs may slow down an SVG.) Because they're a vector file format, you can scale SVGs up or down without any loss in quality.

Is SVG always better than PNG?

If you're going to be using high quality images, detailed icons or need to preserve transparency, PNG is the winner. SVG is ideal for high quality images and can be scaled to ANY size.

What is the best PNG to SVG converter?

Vector Magic is bar none the world's best PNG to SVG converter. If you need to convert PNG to SVG, look no further.


1 Answers

The accepted answer is fine. There is an official help on options available. Also basic Shell commands will do nicely here:

for x in 10 100 200 ; do inkscape --export-png logo${x}.png -w ${x} logo.svg ; done 

On the command line in windows use this line from @avalancha in the comments

for %x in (100 200 300) ; do inkscape --export-png logo%x.png -w %x logo.svg ; done 
like image 147
zany Avatar answered Oct 25 '22 19:10

zany