Skip to content

Instantly share code, notes, and snippets.

@pulcheri
Forked from jessedc/iOS Icon.png bash script
Created January 20, 2012 14:46
Show Gist options
  • Save pulcheri/1647658 to your computer and use it in GitHub Desktop.
Save pulcheri/1647658 to your computer and use it in GitHub Desktop.
A simple bash script using OSX command line tool sips to resample a 512x512px image
#!/bin/bash
f=$(pwd)
sips --resampleWidth 512 "${f}/${1}" --out "${f}/iTunesArtwork"
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 50 "${f}/${1}" --out "${f}/Icon-Small-50.png"
sips --resampleWidth 72 "${f}/${1}" --out "${f}/Icon-72.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment