Search

Article:

April 5, 2019

How to generate png for icns iconset macOS

So... you want to make an icns iconset on macOS, right? Mhm... and you have a single SVG image freshly made... hum hum. Now you want a fast way to make those 10 icons, each with a different size and name, isn’t it?Ok then, this line is for you! You have to have Inkscape installed. (I have an ImageMagick alternative too, but it’s so slow... )  for s in 16 32 128 256 512 ; do inkscape --export-png icon_${s}x${s}.png -w ${s} icon.svg ; inkscape --export-png icon_${s}x${s}@2x.png -w $((s*2)) icon.svg ; done