Apple Icon Image format
Under Mac OS ("Classic", i.e. 7.x-9.x), icons were traditionally stored as metadata in resource forks
. Mac OS X introduced a new, more portable format for icons to accommodate filesystems that can't store resource forks: icns files. These files contain the exact equivalent of a corresponding icns
resource:
icns < total length > < data >
where
- total length is a big-endian (0x12345678 is stored as 12.34.56.78) 32-bit integer; this length includes the resource header (and should therefore be equal to the size of the icns file)
- data is a sequence of bytes
Reference:
mac os x icons for gtk