Page 1 of 1

How convert all SVG files in directory to PNG?

Posted: 2010-06-02T10:51:22-07:00
by belyan
How convert all SVG files in directory to PNG with save original file names?
a.svg
b.svg
c.svg
...

Command

Code: Select all

convert *.svg *.png
rewrite original file names.

Re: How convert all SVG files in directory to PNG?

Posted: 2010-06-02T10:57:03-07:00
by fmw42
use mogrify

see http://www.imagemagick.org/Usage/basics/#mogrify

mogrify -format png *.svg

but better to create a second directory and have the new files put there

cd /fullpathto/svgdirectory
mogrify -path /fullpathto/pngdirectory -format png *.svg

Re: How convert all SVG files in directory to PNG?

Posted: 2010-06-02T11:01:29-07:00
by belyan
Thanks.