Created
May 15, 2012 18:23
-
-
Save idosela/2703946 to your computer and use it in GitHub Desktop.
Convert svg to png file and optimize using pngcrush.
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 | |
# | |
# Require: | |
# sudo apt-get install librsvg2-bin | |
# sudo apt-get install pngcrush | |
# | |
# Usage: | |
# sh svg2png.sh input.svg output.png | |
rsvg-convert -o "$2" "$1" | |
pngcrush -q -reduce -brute "$2" "$2.crushed" | |
mv "$2.crushed" "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment