Just a short post with a really obscure error from iconutil, after an El Capitan upgrade.
If you run a command similar to:
iconutil -c icns some.iconset -o some.icns
And you get (sic):
error: Unsuported image format
Here are two important things:
image prefix must be
This one is easy. The files need to be named with
Here's a list for convenience: Note that in future this may change so always check the docs (here and here).
icon_16x16.png firstname.lastname@example.org icon_32x32.png email@example.com icon_128x128.png firstname.lastname@example.org icon_256x256.png email@example.com icon_512x512.png firstname.lastname@example.org
image format matters
The guideline suggests
PNG with an sRGB color profile is the recommended format for app icons. It may convert the icons without the sRGB profile, but you might notice errors in the colors if you're checking close enough.
Secondly, and this is the one that tripped me up:
The png file likely requires the alpha flag.
Either that, or the first one it finds is what it tries to use for every other one, and if they differ it will fail without a clear error.
This sounds obscure, so here is how I found what it wanted.
- Open the file in preview
cmd+I) or Tools -> Show Inspector
- Click the
iicon and under the general tab, compare the images.
- I noticed the first bunch said "Has Alpha" and the last one didn't.
Once I added the alpha channel it worked again (even though all my icons were already matching and working previously).
Hope that helps!