GEGL operation doesn't correclty handle color profile illuminant
GIMP version:
2.99.3 f47ba9d8
Operating System: Linux
Package: gimp-git from AUR
Description of the bug
GEGL operation seems to incorrectly handle illuminants from assigned color profile based on reported CIE xyY values.
Reproduction
Reproduction steps:
- Open the attached gimp file. Top row consists of sRGB most saturated colors. Bottom row consists of pure white, middle gray (127, 127, 127 sRGB) and pure black.
- Since the attached color profile is built-in sRGB, the xyY values of R (for example) should be x=0.648438 y=0.330867 Y=0.222488 as can be checked with color picker. And middle gray should be x=0.345703 y=0.358538.
- Build and load the attached operation.
- Run in on the test image
Expected result:
The operation should print the same values as seen in step 2.
Actual result:
The reddest sRGB red prints its value as Input pixels x=0.653898, y=0.321709, Y=0.222488
and middle gray prints Input pixels x=0.333333, y=0.333333, Y=0.212231
, which suggests that E illuminant is used with this profile instead of D series.
Notes
See issue #5805 (closed) for more info and also see this comment #5805 (comment 945238) from @ellestone for more info.