Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1.65 KB

README.md

File metadata and controls

65 lines (44 loc) · 1.65 KB

Iconset generator

About

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.

Installing

From PyPI

$ pip install generate-iconset

From sources

$ cd /path/to/repository/
$ pip install ./

Requirements

  • 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)

Usage

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

Basic example

$ 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