-
-
Save jessedc/837916 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}/[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" | |
sips --resampleWidth 144 "${f}/${1}" --out "${f}/[email protected]" |
Works perfectly. You're the man! :)
For Retina iPad icons:
sips --resampleWidth 144 "${f}/${1}" --out "${f}/[email protected]"
I've just updated this gist mentioning the new retina sizes.
Great, thanks a lot
Thanks a lot.
Thank you, I have done my version for Android based on yours. https://gist.github.com/ignasi/8420671
Thanks! This really helped me out. I created a modification that does iOS and Android icons in a single script. If you're interested, you can check it out here: https://gist.github.com/dbubs/9178386
Hi, I searched over net and I don't figure how can run this script in termina(I tried sh.scriptname and give an error)l? what is command for this script?.
I founded, nice script. Thanks
jessedc, thanks you so much! Use of our command line folks is the most native way to generate icons.
Great script. Thanks. How about modifying this script to generate splash screens? Is that possible?
Thanks for the script, very handy!
Thanks! I've updated the bash file with some new sizes for iPhone 6 (plus) : https://gist.github.com/Gerharbo/eb9ff1097b5c1a07c91a
Update for Xcode 8 - September 2016 https://gist.github.com/DenHeadless/1a04ab4eceb2b5fac2cf7ae00b0863e8
Getting Error
saravanas-Mac-mini:~ Saravana$ /Users/Folder/Desktop/untitled_folder/iOS\ Icon.png\ bash\ script ; exit;
Warning: /Users/Folder/ not a valid file - skipping
Error 4: no file was specified
Try 'sips --help' for help using this tool
Warning: /Users/Folder/ not a valid file - skipping
Error 4: no file was specified
Try 'sips --help' for help using this tool
Warning: /Users/Folder/ not a valid file - skipping
Error 4: no file was specified
Try 'sips --help' for help using this tool
Warning: /Users/Folder/ not a valid file - skipping
Error 4: no file was specified
Try 'sips --help' for help using this tool
Warning: /Users/Folder/ not a valid file - skipping
Error 4: no file was specified
Try 'sips --help' for help using this tool
Warning: /Users/Folder/ not a valid file - skipping
Error 4: no file was specified
Try 'sips --help' for help using this tool
Warning: /Users/Folder/ not a valid file - skipping
Error 4: no file was specified
Try 'sips --help' for help using this tool
I've updated this to use pwd, so you can keep the file somewhere handy.