possible bug combining non-RGB colorspace channels

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug combining non-RGB colorspace channels

Post by fmw42 »

IM 6.7.8.7 Q16

The following round trip from RGB to HSL/HSB and back to RGB is failing for IM 6.7.8.7, but works for IM 6.7.6.10 and IM 6.7.4.10

I tried both wasy (with and without making the input image linear color or leaving it non-linear color. The result of both is a grayscale image and not the original color image. The miff image layers look fine. So I believe it is with the recombination, perhaps the -compose R/B/B.


Input:
Image


Processing with IM 6.7.8.7


convert monet3.jpg -colorspace HSL -separate 1tmp.miff
convert 1tmp.miff[0] -colorspace HSL \
1tmp.miff[0] -compose CopyRed -composite \
1tmp.miff[1] -compose CopyGreen -composite \
1tmp.miff[2] -compose CopyBlue -composite \
-colorspace sRGB monet3_HSL_rt.jpg
Image


convert monet3.jpg -set colorspace RGB -colorspace HSL -separate 2tmp.miff
convert 2tmp.miff[0] -colorspace HSL \
2tmp.miff[0] -compose CopyRed -composite \
2tmp.miff[1] -compose CopyGreen -composite \
2tmp.miff[2] -compose CopyBlue -composite \
-colorspace RGB monet3_HSL_rt2.jpg
Image

Is this a bug, or am I misunderstanding something here. It does work fine for IM before 6.7.7.8
Last edited by fmw42 on 2012-08-01T16:25:21-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible but combining non-RGB colorspace channels

Post by fmw42 »

Further information. This does not fail in IM 6.7.8.6 or in IM 6.7.8.7 with HDRI. It only fails in 6.7.8.7 non-hdri
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible but combining non-RGB colorspace channels

Post by magick »

We can reproduce the problem you reported and have a patch in ImageMagick 6.7.8-8 Beta by sometime tomorrow. Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible but combining non-RGB colorspace channels

Post by fmw42 »

magick wrote:We can reproduce the problem you reported and have a patch in ImageMagick 6.7.8-8 Beta by sometime tomorrow. Thanks.
This appears to be fixed in the latest 6.7.8-8 beta, today.
Post Reply