out-of-gamut shows black for specific encoding
Environment/Versions
- GIMP version: master
- Package: self-built
- Operating System: Linux but probably all
Description of the bug
When encoding is 32-bit integer, 16-bit float or 32-bit float, the out-of-gamut color shows black instead of showing the color configured in Preferences.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open an image in 8-bit
- Add a CMYK soft-proof profile small enough so that you get out-of-gamut colors
- Set to soft-proofing and show the out-of-gamut color → to this point, it shows pink (or whatever color you chose if you changed it in Prefs)
- Now convert the image to 32-bit integer, 16-bit float or 32-bit float.
Expected result: out-of-gamut pixels should still show pink/chosen color.
Actual result: the pixels are black.
Additional information
Use the latest master code as I just pushed an unrelated commit fixing segfaults when converting the images with a soft-proof profiles.