Created
October 27, 2017 14:00
-
-
Save sergioska/5f2190da99b0ed30107ea2dd7a3773bb to your computer and use it in GitHub Desktop.
Convert svg to png on mac from command line
This file contains hidden or 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/bash | |
rm -f *.svg.png | |
for f in *.svg; do | |
echo "File -> $f" | |
qlmanage -t -s 1000 -o . $f | |
done | |
for f in *.svg.png; do | |
mv "$f" "$(basename "$f" .svg.png).png" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment