Modulate saturation and lightness broken

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
Noogle

Modulate saturation and lightness broken

Post by Noogle »

Hi,

I believe that the modulate function is broken.
This is my test image:
Image
This is the image desaturated in Photoshop:
Image
However, this is the result of convert -colorspace HSL -modulate 100,0,100 in ImageMagick:
Image

Next, adding a hue/saturation layer in Photoshop and setting the lightness to -50 (i.e. 50%) results in:
Image
However, convert -colorspace HSL -modulate 50,100,100 in ImageMagick gives:
Image

As you can see, the desaturate appears to be mapping the lightest color to white, and working its way from there.
Changing the lightness, however has also changed the hue.
Post Reply