New: as of June 2017, iconify 2.0 can now create both Windows ".ico"
Mac OS X ".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 really a one-script program,
and the rest of this page following this note is officially out of date.
You may also be interested in this new 2.0 utility that displays the structure of ".icns" files, and this older 1.0 utility that does the same for ".ico" files. Or, fetch the new version's zipfile with all these items here. iconify 2.0 is also shipped in source-code package build folders of the major programs here, and is used to build their icons.
The following iconify 1.0 documentation is largely defunct (please mind the cruft)...
This basic Python 3.X/2.X program creates an ".ico" Windows-style icon file from presized image files in a folder. It requires Python and the Pillow (PIL) image library (available here), and demonstrates low-level binary data processing with the struct module. See the main script's docstring and other items below for usage details.
This program was last changed June 2017.
For more code examples, see the programs page.