Skip to content
  • Amy spark's avatar
    Address Lab/CMYK space subtleties within KoColorSpaceMaths · 874243cb
    Amy spark authored
    Summary:
    In T4488, two problems were identified with regards to Lab and CMYK when using KoColorSpaceMaths:
     - Palette loading was broken
     - Calculations themselves were broken: KoColorSpaceMaths assumes [0..1] in floating point whereas Lab has [0.100, -128..+127, -128..+127] and CMYK [0..100].
    
    This patch closes T4488 by making LittleCMS-based profiles (CMYKF32ColorSpace, LabF32ColorSpace) request the profile's bounds prior to initializing the channel defaults, and adjusting the same in the Qt controls. I've also changed KoColorSpaceMaths to account for these bounds.
    
    Maniphest Tasks: T4488
    
    Differential Revision: https://phabricator.kde.org/D6589
    
    Closes T4488
    874243cb