Generate Xcode AppIcons for Mac OS X applications, iPhone apps, and iPad apps.
The generate_appicons.sh script uses the standard Mac OS X command line tool 'sips' to scale a given icon into the sizes required by an OS X application.
Example of usage:
Henriks-iMac:xcode-appicons rtlheli$ ./generate_appicons.sh icon.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon-16x16.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/[email protected]
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon-32x32.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/[email protected]
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon-128x128.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/[email protected]
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon-256x256.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/[email protected]
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon-512x512.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/icon.png
/Volumes/Users/rtlheli/Projects/xcode-appicons/[email protected]
Henriks-iMac:xcode-appicons rtlheli$
The script generates images with the original filname + size and scale:
Henriks-iMac:xcode-appicons rtlheli$ ls
README.md [email protected] icon-256x256.png [email protected] icon.png
generate_appicons.sh icon-16x16.png [email protected] icon-512x512.png
icon-128x128.png [email protected] icon-32x32.png [email protected]
Henriks-iMac:xcode-appicons rtlheli$
To use the icons, just drag-n-drop them into your project assets.