Skip to content

Instantly share code, notes, and snippets.

@desplesda
Last active December 28, 2015 02:08
Show Gist options
  • Save desplesda/7425171 to your computer and use it in GitHub Desktop.
Save desplesda/7425171 to your computer and use it in GitHub Desktop.
A quick little script to shrink down a large icon down to the various sizes needed on iOS. Note that small icons can get pretty blurry, so you should probably design those separately.
ORIGINAL_ICON="Icon-1024.png"
convert $ORIGINAL_ICON -resize 512 Icon-512.png
convert $ORIGINAL_ICON -resize 76 Icon-76.png
convert $ORIGINAL_ICON -resize 152 Icon-76@2x.png
convert $ORIGINAL_ICON -resize 72 Icon-72.png
convert $ORIGINAL_ICON -resize 144 Icon-72@2x.png
convert $ORIGINAL_ICON -resize 60 Icon-60.png
convert $ORIGINAL_ICON -resize 120 Icon-60@2x.png
convert $ORIGINAL_ICON -resize 57 Icon-57.png
convert $ORIGINAL_ICON -resize 114 Icon-57@2x.png
convert $ORIGINAL_ICON -resize 50 Icon-50.png
convert $ORIGINAL_ICON -resize 100 Icon-50@2x.png
convert $ORIGINAL_ICON -resize 40 Icon-40.png
convert $ORIGINAL_ICON -resize 80 Icon-40@2x.png
convert $ORIGINAL_ICON -resize 29 Icon-29.png
convert $ORIGINAL_ICON -resize 58 Icon-29@2x.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment