Generating an iconset (.icns
) for using as an application icon on Mac OS.
The tool converts an original image into several sizes to form an iconset, which is then converted into .icns
file with iconutil
tool. More information in the following article.
Moved from this repository to become a PyPI package.
$ pip install generate-iconset
$ cd /path/to/repository/
$ pip install ./
- Python 3.7 or later
- image processing tool (either of)
- ImageMagick (recommended)
sips
(part of the standard Mac OS utilities)
iconutil
tool (part of the standard Mac OS utilities)
Below examples assume that you installed the tool from PyPI to use it as a standalone executable. Otherwise you'll need to run it as a regular Python script.
Built-in help:
$ generate-iconset --help
$ generate-iconset /path/to/original/icon.png
- will fail to run if it's not Mac OS
- will use ImageMagick for converting
- will not force conversion to
.png
, if original image is not.png
- resulting
.icns
will be saved to/path/to/original/icon.icns