Skip to content

Instantly share code, notes, and snippets.

@martenbiehl
Forked from jessedc/iOS Icon.png bash script
Last active August 29, 2015 14:20
Show Gist options
  • Save martenbiehl/232312f4c2a465695eb7 to your computer and use it in GitHub Desktop.
Save martenbiehl/232312f4c2a465695eb7 to your computer and use it in GitHub Desktop.
#!/bin/bash
f=$(pwd)
sips --resampleWidth 29 "${f}/${1}" --out "${f}/iPhoneSpotlight-iPhoneSettings-29.png"
sips --resampleWidth 58 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 87 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 80 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 120 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 57 "${f}/${1}" --out "${f}/iPhoneApp-57.png"
sips --resampleWidth 114 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 120 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 180 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 29 "${f}/${1}" --out "${f}/iPadSettings-29.png"
sips --resampleWidth 58 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 40 "${f}/${1}" --out "${f}/iPadSpotlight-40.png"
sips --resampleWidth 80 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 50 "${f}/${1}" --out "${f}/iPadSpotlight-50.png"
sips --resampleWidth 100 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 72 "${f}/${1}" --out "${f}/iPadApp-72.png"
sips --resampleWidth 144 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 76 "${f}/${1}" --out "${f}/iPadApp-76.png"
sips --resampleWidth 152 "${f}/${1}" --out "${f}/[email protected]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment