Skip to content

Issue #6112: Add support for loading .icns files

Alx Sa requested to merge alxsa-load-icns into master

This patch attempts to add support for loading .icns files per the feature request. It ports a plug-in made by Brion Vibber (licensed under GPL v2) to work with the current development version of GIMP.

The original version of the plug-in only supported formats available up to 2004 (roughly to the first release of OSX). Subsequent versions largely store the icons in PNG or JPEG 2000 formats. The code was updated to support these formats by passing the bytes to the PNG and JP2 plug-in via procedures.

There are additional design challenges with exporting .icns files (e.g. the width and height are preset based on what format the icon is saved at and can't be changed), so I wanted to split this fix into two parts to iron out any general issues first (like creating a new plug-in and setting up the build rules properly).

Sample files:,,

(Also, I just thought it would be nice if GIMP could open its own MacOS icon)


Edited by Alx Sa

Merge request reports