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
  • 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 [email protected] # Home screen for Retina display
convert $1 -resize 180x180 [email protected] # Home screen for Retina display(iPhone6+)
convert $1 -resize 76x76 Icon-ipad.png # Home screen on iPad
convert $1 -resize 152x152 [email protected] # Home screen on iPad Retina
convert $1 -resize 40x40 Icon-spotlight.png # Spotlight icon for non-Retina display
convert $1 -resize 80x80 [email protected] # Spotlight icon for Retina display
convert $1 -resize 120x120 [email protected] # Spotlight icon for Retina display(iPhone6+)
convert $1 -resize 29x29 Icon-Small.png # Settings icon for non-Retina display
convert $1 -resize 58x58 [email protected] # Settings icon for Retina display
convert $1 -resize 87x87 [email protected] # 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