Problems with Icons

I’m running into some weird behavior creating icons for my app (on Mac only so far). I’m using Illustrator to design my icon and exporting PNGs in the various sizes needed (from 1024x1024 down to 16x16). For some reason some of the icon sizes are coming out corrupted (varies a bit, sometimes one is just missing, or I see the corner of a larger size in the square where the smaller one should be). I’ve tried reserving the PNGs from Photoshop with different parameters - sometimes it fixes some of them, but not always.

Has anyone else run into similar problems? Is there any documentation of any requirements for the images used as icons? Is there software that you’ve found reliably exports compatible PNGs?

Move them to Photoshop and export there. Once exported, use sips to change the metadata DPI values (Adobe doesn’t seem to save that value).

sips -s dpiWidth 72 -s dpiHeight 72 -output ./NewFolder ./OriginalFolder/*.png

That did it, thanks! One brief syntax note, at least in High Sierra the output folder is specified with --out not -output.

you can change the DPI using Preview on macOS without the need for SIPS

But sips does all of them at once with one command :wink: