Created
February 27, 2015 16:53
-
-
Save acidsound/d89761c03436f552741f to your computer and use it in GitHub Desktop.
Android/iOS Icon Generator
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/sh | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 <image_to_convert.png>" >&2 | |
exit 1 | |
fi | |
# imagemagick script | |
convert $1 -resize 57x57 iphone.png | |
convert $1 -resize 120x120 iphone_2x.png | |
convert $1 -resize 180x180 iphone_3x.png | |
convert $1 -resize 76x76 ipad.png | |
convert $1 -resize 152x152 ipad_2x.png | |
convert $1 -resize 72x72 android_hdpi.png | |
convert $1 -resize 36x36 android_ldpi.png | |
convert $1 -resize 48x48 android_mdpi.png | |
convert $1 -resize 96x96 android_xhdpi.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment