Skip to content

Instantly share code, notes, and snippets.

@vaevictis
Forked from jessedc/iOS Icon.png bash script
Last active August 29, 2015 14:15
Show Gist options
  • Save vaevictis/f53b5b59145df63f9943 to your computer and use it in GitHub Desktop.
Save vaevictis/f53b5b59145df63f9943 to your computer and use it in GitHub Desktop.
#!/bin/bash
f=$(pwd)
sips --resampleWidth 512 "${f}/${1}" --out "${f}/iTunesArtwork"
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/iTunesArtwork@2x"
sips --resampleWidth 57 "${f}/${1}" --out "${f}/Icon.png"
sips --resampleWidth 114 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 29 "${f}/${1}" --out "${f}/Icon-Small.png"
sips --resampleWidth 58 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 87 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 50 "${f}/${1}" --out "${f}/Icon-Small-50.png"
sips --resampleWidth 100 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 72 "${f}/${1}" --out "${f}/Icon-72.png"
sips --resampleWidth 144 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 40 "${f}/${1}" --out "${f}/Icon-40.png"
sips --resampleWidth 80 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 60 "${f}/${1}" --out "${f}/Icon-60.png"
sips --resampleWidth 120 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 180 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 76 "${f}/${1}" --out "${f}/Icon-76.png"
sips --resampleWidth 152 "${f}/${1}" --out "${f}/[email protected]"
@vaevictis
Copy link
Author

Hey Jesse,
I updated that nice little discovery with the needed image sizes by current version of xCode for the new devices (iphone and ipad though, not for carplay or apple watch yet). here's my fork: https://gist.github.com/vaevictis/f53b5b59145df63f9943

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment