Color>Component>Decompose (HSV) followed by recompose doesn't restore a proper image
GIMP version: 2.10.19 (freshly pulled (2020/05/17 11:00) and self-built:
Gimp: commit f000e405 (HEAD -> gimp-2-10, origin/gimp-2-10)
Gegl: commit 968f52a532f4782b3d43a3d257c8bca2d6c3c595 (HEAD -> master, origin/master, origin/HEAD)
Babl: commit 51437f216dbbef80f9bf661dd152452083119349 (HEAD -> master, origin/master, origin/HEAD)
Also visible on 2.10.14 and 2.10.18
OS: Linux
Description of the bug
Colors>Component>Decompose to HSV followed by Colors>Component>Recompose without any editing, should restore the initial image.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Starting with this image:
-
Colors>Components>Decompose
(To HSV) - In the resulting image:
Colors>Components>Recompose
…
Expected result:
Actual result:
Additional information
This doesn't happen if the image is converted to 32-bit FP. Other Decompose/Recompose options seem to work fine.
Thresholding the Hue layer of the HSV image at 255 reproduces the same pattern as the dark spots in the result, so these seem to correspond to pixels with a Hue of 255: