Created
June 9, 2016 21:10
-
-
Save mattsilber/154c3ead60725d85152beb283936eb54 to your computer and use it in GitHub Desktop.
Take an SVG File and use inkscape to convert it to a PNG for each Android icon sizes
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
destFileName="${1/.svg/.png}" | |
sizes=( 48 72 96 144 192 512 ) | |
for size in "${sizes[@]}" | |
do | |
mkdir $size/ | |
inkscape -z -e $size/$destFileName -w $size -h $size $1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment