Skip to content

Instantly share code, notes, and snippets.

@sebskuse
Created November 24, 2014 09:29
Show Gist options
  • Save sebskuse/18fd41a75f98e723160b to your computer and use it in GitHub Desktop.
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
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