Skip to content

Instantly share code, notes, and snippets.

@mikesorae
Forked from lexrus/asicon.sh
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikesorae/7f657f370d61444696f4 to your computer and use it in GitHub Desktop.
Save mikesorae/7f657f370d61444696f4 to your computer and use it in GitHub Desktop.
generate app icons of all sizes.
#!/bin/bash
# According to https://developer.apple.com/library/ios/#qa/qa1686/_index.html
# Install ImageMagick with MacPort: sudo port install ImageMagick
convert $1 -resize 512x512 iTunesArtwork.png # Ad Hoc iTunes
convert $1 -resize 60x60 Icon.png # Home screen on non-Retina
convert $1 -resize 120x120 Icon@2x.png # Home screen for Retina display
convert $1 -resize 180x180 Icon@3x.png # Home screen for Retina display(iPhone6+)
convert $1 -resize 76x76 Icon-ipad.png # Home screen on iPad
convert $1 -resize 152x152 Icon-ipad@2x.png # Home screen on iPad Retina
convert $1 -resize 40x40 Icon-spotlight.png # Spotlight icon for non-Retina display
convert $1 -resize 80x80 Icon-spotlight@2x.png # Spotlight icon for Retina display
convert $1 -resize 120x120 Icon-spotlight@3x.png # Spotlight icon for Retina display(iPhone6+)
convert $1 -resize 29x29 Icon-Small.png # Settings icon for non-Retina display
convert $1 -resize 58x58 Icon-Small@2x.png # Settings icon for Retina display
convert $1 -resize 87x87 Icon-Small@3x.png # Settings icon for Retina display(iPhone6+)
@mikesorae
Copy link
Author

update icon sizes for ios sdk 7.0 or later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment