Created
July 8, 2014 06:38
-
-
Save chagel/9ad5f799ec5801cd1335 to your computer and use it in GitHub Desktop.
Generate iOS icon assets
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
#Generate all iOS icon assets from one big PNG file | |
source_icon='icon-1024-01.png' | |
generated_folder='generated' | |
sizes=(29 40 50 57 58 72 76 80 100 114 120 144 152) | |
mkdir -p $generated_folder | |
for size in ${sizes[*]} | |
do | |
sips -Z $size --out $generated_folder/Icon-$size.png $source_icon | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment