Makeicns -in myfile.jpg -32 otherfile.png -out outfile.icnsĬreates outfile.icns with sizes 512, 256, 128, and 16 containing dataįrom myfile.jpg and with size 32 containing data from otherfile.png.
Sips -z $SIZE $SIZE $ORIGICON -out $ICONDIR/icon_$Ĭreates image.icns with only a 512x512 and a 32x32 variant. In the window that pops up, click on the icon and select 'Copy' from the 'Edit' menu. Simply click on the icon you would like to use and select 'Get Info' from the 'File' menu. export PROJECT=MyprojectĮxport ICONDIR=$PROJECT.app/Contents/Resources/$PROJECT.iconset Customizing icons under Mac OS X is straightforward. You only need to touch the first three lines. (Icons are available for Android, Linux and Mac OS in the link below the. icns file.įor this script to run, you need your original icon file to be a png, and you have your bundle in more or less working order. If you want to change a folder icon: right click the folder -> properties. It resizes and copies them to a icon set, and uses the Mac OS's 'iconutil' tool to join them into a. It takes the original png file, which I expect to be as big as the maximum size, if not bigger, to make sure they are rendered at maximum quality.
I made a small script that takes a big image and resizes it to all expected icon sizes for Mac OS, including the double ones for retina displays.