Skip to content

Instantly share code, notes, and snippets.

@Gerharbo
Forked from jessedc/iOS Icon.png bash script
Created May 19, 2015 15:03
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gerharbo/eb9ff1097b5c1a07c91a to your computer and use it in GitHub Desktop.
Save Gerharbo/eb9ff1097b5c1a07c91a to your computer and use it in GitHub Desktop.
#!/bin/bash
f=$(pwd)
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/iTunesArtwork@2x.png"
sips --resampleWidth 57 "${f}/${1}" --out "${f}/app-icon.png"
sips --resampleWidth 114 "${f}/${1}" --out "${f}/app-icon@2x.png"
sips --resampleWidth 29 "${f}/${1}" --out "${f}/app-icon-29.png"
sips --resampleWidth 58 "${f}/${1}" --out "${f}/app-icon-29@2x.png"
sips --resampleWidth 87 "${f}/${1}" --out "${f}/app-icon-29@3x.png"
sips --resampleWidth 80 "${f}/${1}" --out "${f}/app-icon-40@2x.png"
sips --resampleWidth 120 "${f}/${1}" --out "${f}/app-icon-40@3x.png"
sips --resampleWidth 120 "${f}/${1}" --out "${f}/app-icon-60@2x.png"
sips --resampleWidth 180 "${f}/${1}" --out "${f}/app-icon-60@3x.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment