Page 1 of 1

RGB <-> HCL conversion not correct

Posted: 2012-08-14T13:14:23-07:00
by ippei
branches/ImageMagick-6

Recently added HCL support routines, ConverRGBToHCL() and ConvertHCLToRGB() in gem.c, will be fixed by a patch I posted with viewtopic.php?f=2&t=21646.
It fixes:
  • RGB -> HCL: Wrong hue will be returned if g < b < r.
  • HCL -> RGB: Unexpectedly lightened.
Please check it.

Re: RGB <-> HCL conversion not correct

Posted: 2012-08-14T16:26:14-07:00
by magick
Thanks for the problem report and patch. We'll commit it to the Subversion repository by sometime tomorrow.