-
-
Save Gerharbo/eb9ff1097b5c1a07c91a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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