Mobile app version of vmapp.org
Login or Join
Ravi4787994

: PNG to SVG batch conversion Is there a tool to convert 302 PNG images to SVG? I know how to do it one by one using Inkscape, but I need a tool to convert the 302 image at once.

@Ravi4787994

Posted in: #Png #Svg

Is there a tool to convert 302 PNG images to SVG?
I know how to do it one by one using Inkscape, but I need a tool to convert the 302 image at once.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi4787994

1 Comments

Sorted by latest first Latest Oldest Best

 

@Hamm6457569

This may help: www.commandlinefu.com/commands/view/13286/batch-convert-svg-to-png
Put your files on the same folder.
Open your terminal, write

cd (your folder path)


for example

cd /Documents/FilesINeedToConvert


Then copy and paste this:

svg2png(){ png="${1%.*}.png"; inkscape --export-png="$png" --without-gui "" && pngcrush -brute -rem alla -rem text "$png" "$png.new" && mv "$png.new" "$png";}


That's for Inkscape, but if you install ImageMagick, you can use these others, here: www.imagemagick.org/script/index.php :

this one

for i in *.svg; do convert "$i" "${i%.svg}.png"; done


OR this

find . -name *.svg -print0 | xargs -0 -n1 -P4 -I{} bash -c 'X={}; convert "$X" "${X%.svg}.png"'

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme