TIFF (and probably others) can load 16 bit CMYK, GetColorType (BitmapAccess.cpp) is not aware of this and reports always FIC_RGBALPHA for 4channel 16bit.
To fix change case FIT_RGBA16 to
return FreeImage_GetICCProfile(dib)->flags & FIICC_COLOR_IS_CMYK ? FIC_CMYK : FIC_RGBALPHA;
Anonymous
Same goes for IsTransparent() :
The FIT_RGBAF and FIT_RGBA16 cases must return:
FreeImage_GetICCProfile(dib)->flags & FIICC_COLOR_IS_CMYK ? FALSE : TRUEElse CMYK images will be reported to have transparency!
Hi Mihail,
This is now fixed in the CVS.
Hervé
Fixed in release 3.18.0