Skip to main content

Generating an iconset for Mac OS application

Project description

generate-iconset

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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

generate-iconset-1.2.0.tar.gz (16.9 kB view hashes)

Uploaded Source

Built Distribution

generate_iconset-1.2.0-py3-none-any.whl (17.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page