Created
November 24, 2014 09:29
-
-
Save sebskuse/18fd41a75f98e723160b to your computer and use it in GitHub Desktop.
Generate app icon files from a highres source. Put in your bash aliases then call generate_app_icons source.png
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
function generate_app_icons { | |
icons=(29 40 50 57 58 72 76 80 87 100 120 114 120 144 152 180) | |
for i in "${icons[@]}" | |
do | |
resize_image $1 $i | |
done | |
} | |
function resize_image { | |
cp $1 Icon-$2.png | |
sips -Z $2 Icon-$2.png | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment