Skip to content

Instantly share code, notes, and snippets.

@sashka
Forked from jessedc/iOS Icon.png bash script
Created June 14, 2013 20:09
Show Gist options
  • Save sashka/5784884 to your computer and use it in GitHub Desktop.
Save sashka/5784884 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}/Icon@2x.png"
sips --resampleWidth 29 "${f}/${1}" --out "${f}/Icon-Small.png"
sips --resampleWidth 58 "${f}/${1}" --out "${f}/Icon-Small@2x.png"
sips --resampleWidth 50 "${f}/${1}" --out "${f}/Icon-Small-50.png"
sips --resampleWidth 72 "${f}/${1}" --out "${f}/Icon-72.png"
sips --resampleWidth 144 "${f}/${1}" --out "${f}/Icon-72@2x.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment