Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Given a 1024x1024 iOS app icon this script creates all the other requires sizes
#!/bin/sh
convert Icon-1024.png -resize 20x20 Icon-20.png
convert Icon-1024.png -resize 40x40 Icon-20@2x.png
convert Icon-1024.png -resize 60x60 Icon-20@3x.png
convert Icon-1024.png -resize 29x29 Icon-29.png
convert Icon-1024.png -resize 58x58 Icon-29@2x.png
convert Icon-1024.png -resize 87x87 Icon-29@3x.png
convert Icon-1024.png -resize 40x40 Icon-40.png
convert Icon-1024.png -resize 80x80 Icon-40@2x.png
convert Icon-1024.png -resize 76x76 Icon-76.png
convert Icon-1024.png -resize 152x152 Icon-76@2x.png
convert Icon-1024.png -resize 167x167 Icon-85.5@2x.png
convert Icon-1024.png -resize 120x120 Icon-40@3x.png
convert Icon-1024.png -resize 120x120 Icon-60@2x.png
convert Icon-1024.png -resize 180x180 Icon-60@3x.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.