Created
October 30, 2016 18:46
-
-
Save chiliec/a80ce78f977b31fc86ff9ab1cd8e7273 to your computer and use it in GitHub Desktop.
Icon AppStore resize. Usage: ./icon_resizer.sh path_to_big_icon.png
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) | |
sips --resampleWidth 29 "${f}/${1}" --out "${f}/01iPhoneSpotlight56_29pt.png" | |
sips --resampleWidth 58 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 87 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 80 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 120 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 57 "${f}/${1}" --out "${f}/04iPhoneAppIcon56_57pt.png" | |
sips --resampleWidth 114 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 120 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 180 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 29 "${f}/${1}" --out "${f}/07iPadSettings7_29pt.png" | |
sips --resampleWidth 58 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 40 "${f}/${1}" --out "${f}/09iPadSpotlight7_40pt.png" | |
sips --resampleWidth 80 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 50 "${f}/${1}" --out "${f}/11iPadSpotlight56_50pt.png" | |
sips --resampleWidth 100 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 72 "${f}/${1}" --out "${f}/13iPadAppIcon56_72pt.png" | |
sips --resampleWidth 144 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 76 "${f}/${1}" --out "${f}/15iPadAppIcon7_76pt.png" | |
sips --resampleWidth 152 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 167 "${f}/${1}" --out "${f}/[email protected]" | |
sips --resampleWidth 512 "${f}/${1}" --out "${f}/iTunesArtwork" | |
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/iTunesArtwork@2x" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment