Skip to content

Issue #318: Add 32bit Sun Rasterfile format (.im32) as a exportable file format

Alx Sa requested to merge alxsa-export-32bpp-sunras into master

This attempts to resolve issue #318.

GIMP can currently import 32bpp SunRas files and has code to export them as well. The export code is disabled however, as 32bpp is just 24bpp with a 0x00 left padding. The patch adds a boolean parameter to determine if an RGB image should be saved as 24bpp or 32bpp.

Note that some image viewers interpret this value as alpha rather than padding. This seemed to be a point of contention 13 years ago when this request was made. As one example, this sample image I found loads normally in GIMP but is completely transparent in ImageMagick: 32bpp.ras

Merge request reports