Skip to content

Instantly share code, notes, and snippets.

@ksloan
Created September 28, 2016 23:49
Show Gist options
  • Save ksloan/8e3224b0d382595ed31f22410391a89f to your computer and use it in GitHub Desktop.
Save ksloan/8e3224b0d382595ed31f22410391a89f to your computer and use it in GitHub Desktop.
Generate Icons and Splash Screens for iOS App
convert icon.png -resize 180x180 "./icons/180.png"
convert icon.png -resize 29x29 "./icons/29.png"
convert icon.png -resize 58x58 "./icons/29-2x.png"
convert icon.png -resize 87x87 "./icons/29-3x.png"
convert icon.png -resize 40x40 "./icons/40.png"
convert icon.png -resize 80x80 "./icons/40-2x.png"
convert icon.png -resize 50x50 "./icons/50.png"
convert icon.png -resize 100x100 "./icons/50-2x.png"
convert icon.png -resize 57x57 "./icons/57.png"
convert icon.png -resize 114x114 "./icons/57-2x.png"
convert icon.png -resize 60x60 "./icons/60.png"
convert icon.png -resize 60x60 "./icons/20-3x.png"
convert icon.png -resize 120x120 "./icons/60-2x.png"
convert icon.png -resize 180x180 "./icons/60-3x.png"
convert icon.png -resize 72x72 "./icons/72.png"
convert icon.png -resize 144x144 "./icons/72-2x.png"
convert icon.png -resize 76x76 "./icons/76.png"
convert icon.png -resize 152x152 "./icons/76-2x.png"
convert icon.png -resize 1024x1024 "./icons/1024.png"
convert icon.png -resize 20x20 "./icons/20.png"
convert icon.png -resize 40x40 "./icons/20-2x.png"
convert icon.png -resize 167x167 "./icons/83.5-2x.png"
convert="convert screen.png -background #60C4EE -gravity center"
$convert -resize 256x256 -extent 320x480 ./screens/default.png
$convert -resize 256x256 -extent 640x960 ./screens/default-2x.png
$convert -resize 256x256 -extent 640x1136 ./screens/retina-4.png
$convert -resize 256x256 -extent 1242x2208 ./screens/retina-5.5.png
$convert -resize 256x256 -extent 2208x1242 ./screens/retina-5.5-landscape.png
$convert -resize 256x256 -extent 750x1334 ./screens/retina-4.7.png
$convert -resize 256x256 -extent 768x1024 ./screens/ipad-portrait-1x.png
$convert -resize 256x256 -extent 1536x2048 ./screens/ipad-portrait-2x.png
$convert -resize 256x256 -extent 1024x768 ./screens/ipad-landscape-1x.png
$convert -resize 256x256 -extent 2048x1536 ./screens/ipad-landscape-2x.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment