Menu ▾ ▴

#118 Bugfix: ColorType is incorrect for 16bit CMYK

None
closed
None
5
2018-07-31
2016-03-16
No

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;

Discussion

  • Mihail Naydenov

    Mihail Naydenov - 2016-03-17

    Same goes for IsTransparent() :

    The FIT_RGBAF and FIT_RGBA16 cases must return:
    FreeImage_GetICCProfile(dib)->flags & FIICC_COLOR_IS_CMYK ? FALSE : TRUE

    Else CMYK images will be reported to have transparency!

     
  • Hervé Drolon

    Hervé Drolon - 2016-03-20
    • status: open --> pending
    • assigned_to: Hervé Drolon
    • Group: -->
     
  • Hervé Drolon

    Hervé Drolon - 2016-03-20

    Hi Mihail,

    This is now fixed in the CVS.

    Hervé

     
  • Hervé Drolon

    Hervé Drolon - 2018-07-31
    • status: pending --> closed
     
  • Hervé Drolon

    Hervé Drolon - 2018-07-31

    Fixed in release 3.18.0

     

Anonymous
Anonymous

Add attachments
Cancel