Although using all kinds of scripts to convert a high-resolution PNG image to a set of different low-resolution copies may seem convenient (and this is true), we should not forget that this type of automatic resizing will lead to noticeably imperfect images.
The lower the resolution, the brighter the icon!
Instead, you should always request a logo in some kind of vector format from your designer, for example, in SVG . With this at hand, you can manually prepare the perfect PNG files in all necessary resolutions, and then create one .icns file that will make your application icon beautiful on every screen, from a mobile phone to some high-quality Retina display. latest iMac.
According to the latest Apple recommendations from 2016, you should prepare the following PNG files:
+---------------------+--------------------+--------------+ | filename | resolution, pixels | density, PPI | +---------------------+--------------------+--------------+ | icon_16x16.png | 16x16 | 72 | | icon_16x16@2x.png | 32x32 | 144 | | icon_32x32.png | 32x32 | 72 | | icon_32x32@2x.png | 64x64 | 144 | | icon_128x128.png | 128x128 | 72 | | icon_128x128@2x.png | 256x256 | 144 | | icon_256x256.png | 256x256 | 72 | | icon_256x256@2x.png | 512x512 | 144 | | icon_512x512.png | 512x512 | 72 | | icon_512x512@2x.png | 1024x1024 | 144 | +---------------------+--------------------+--------------+
After all PNG files are prepared, put them in some directory with the .iconset extension ( Logos.iconset , for example) and execute the following from the terminal:
iconutil --convert icns Logos.iconset
If there were no errors after executing this command, then all the files were processed correctly, and you received the Logos.icns file in the same directory containing all the beautiful clear logos for your application that are suitable for any modern screen as of 2017.
TranslucentCloud Sep 24 '16 at 16:01 2016-09-24 16:01
source share