New: as of June 2017, iconify 2.0 can now create both Windows ".ico"
Mac OS ".icns" icon
from presized images—and
on either Windows or Macs (plus Linux).
Check out the new script's
main docstring for details; this is mostly a one-script program,
and all its usage documentation is at the top of its code file.
You may also be interested in this new 2.0 utility that displays the structure of ".icns" files; this older 1.0 utility that does the same for ".ico" files; and this 2.0 tool that resizes a 1024 PNG file as a prestep to iconify. Or, fetch the new version's zipfile with all these items here. iconify is used to build icons of the major programs here, and also ships in their source-code package build folders.
This Python 3.X/2.X program creates both ".ico" Windows-style and ".icns" Mac OS-style icon files from presized image files in a folder. The icons it makes can be used in GUIs, apps, and other contexts.
iconify requires Python and the Pillow (PIL) image library (available here). You can run this program to make Mac and Windows icons on any platform supported by both Python and Pillow—including Mac OS, Windows, and Linux.
Beyond its utility, iconify also demonstrates low-level binary data processing with Python's struct module.
Use the following to fetch iconify, or view its unzipped content.
This program was last changed: May 2017.
For more code examples, see the programs page.