Created
April 10, 2015 21:44
-
-
Save jcordeiro/ddaa881c6a5dc0c1fc39 to your computer and use it in GitHub Desktop.
Iterates through a directory of .svg images and converts them to .png images. Requires the inkscape command line tool to be installed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for i in *.svg | |
do | |
IFS='.' read -a array <<< "$i" | |
inkscape -f "$i" -e "${array[0]}.png" | |
rm $i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment