Last active
September 24, 2015 08:43
-
-
Save robinhayward/9b5cfedcbae4e206c80a to your computer and use it in GitHub Desktop.
iOS App Icon Generation
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/bash | |
f=$(pwd) | |
rm -rf Output | |
mkdir Output | |
# iTunes | |
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/Output/iTunesArtwork.png" | |
# App | |
sips --resampleWidth 180 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 120 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 120 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 152 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 76 "${f}/${1}" --out "${f}/Output/iPadIcon.png" | |
sips --resampleWidth 167 "${f}/${1}" --out "${f}/Output/[email protected]" | |
# Spotlight | |
sips --resampleWidth 180 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 120 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 80 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 120 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 60 "${f}/${1}" --out "${f}/Output/iPadSpotlightIcon.png" | |
sips --resampleWidth 120 "${f}/${1}" --out "${f}/Output/[email protected]" | |
# Settings | |
sips --resampleWidth 87 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 58 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 58 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 58 "${f}/${1}" --out "${f}/Output/[email protected]" | |
sips --resampleWidth 29 "${f}/${1}" --out "${f}/Output/iPadSettingsIcon.png" | |
sips --resampleWidth 58 "${f}/${1}" --out "${f}/Output/[email protected]" | |
open ./Output/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment