Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-56

Add support for the ICNS icon format

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-alpha1
    • None
    • None
    • All

    Description

      I am submitting a patch that adds support for the Apple ICNS icon format. It supports reading, writing, getting the image info, and dumping the icons, and contains insightful tests.

      This is, to my knowledge, the most correct open source ICNS parser in existence at the moment, and the only one to contain any detailed tests. It deals with an extensively investigated compression quirk in 128x128 images, uses the same alpha mask search order used by MacOS, and has been thoroughly tested for conformance against MacOS itself. It correctly parses all the ICNS files that ship with MacOS.

      The only missing feature is support for 256x256 and 512x512 icons, but that requires JPEG2000 decompression which Sanselan doesn't have at the moment.

      Attachments

        1. icns-images.tar.bz2
          8 kB
          Damjan Jovanovic
        2. sanselan-icns.patch
          58 kB
          Damjan Jovanovic

        Activity

          People

            Unassigned Unassigned
            damjan Damjan Jovanovic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: