Skip to content

Instantly share code, notes, and snippets.

@robinhayward
Last active September 24, 2015 08:43
Show Gist options
  • Save robinhayward/9b5cfedcbae4e206c80a to your computer and use it in GitHub Desktop.
Save robinhayward/9b5cfedcbae4e206c80a to your computer and use it in GitHub Desktop.
iOS App Icon Generation
#!/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