Created
March 6, 2015 17:11
-
-
Save eienf/00f32095444119c1461c to your computer and use it in GitHub Desktop.
Create various sizes of iPhone app icons with sips command.
This file contains hidden or 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 [ $# -lt 1 ]; then | |
echo "Uage: $0 ImageFileName" | |
exit 1 | |
fi | |
FILE=$1 | |
BASENAME=${FILE%.*} | |
EXT=${FILE##*.} | |
DIR=icons | |
for size in 180 120 80 60 40 87 58 29 | |
do | |
sips -z $size $size $FILE --out $DIR/$BASENAME-$size.$EXT | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment