Last active
August 29, 2015 14:01
-
-
Save klrkdekira/c432c77492e950a5c083 to your computer and use it in GitHub Desktop.
IOS icon resize (ImageMagick)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
f=$(pwd) | |
convert "${f}/${1}" -resize 57x57 "${f}/icon.png" | |
convert "${f}/${1}" -resize 114x114 "${f}/icon@2x.png" | |
convert "${f}/${1}" -resize 60x60 "${f}/icon-60.png" | |
convert "${f}/${1}" -resize 120x120 "${f}/icon-60@2x.png" | |
convert "${f}/${1}" -resize 72x72 "${f}/icon-72.png" | |
convert "${f}/${1}" -resize 144x144 "${f}/icon-72@2x.png" | |
convert "${f}/${1}" -resize 76x76 "${f}/icon-76.png" | |
convert "${f}/${1}" -resize 152x152 "${f}/icon-76@2x.png" | |
convert "${f}/${1}" -resize 29x29 "${f}/icon-small.png" | |
convert "${f}/${1}" -resize 58x58 "${f}/icon-small@2x.png" | |
convert "${f}/${1}" -resize 80x80 "${f}/icon-40@2x.png" | |
convert "${f}/${1}" -resize 50x50 "${f}/icon-50.png" | |
convert "${f}/${1}" -resize 100x100 "${f}/icon-50@2x.png" | |
convert "${f}/${1}" -resize 40x40 "${f}/icon-40.png" | |
convert "${f}/${1}" -resize 80x80 "${f}/icon-40@2x.png" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment