RGB <-> HCL conversion not correct

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
ippei
Posts: 5
Joined: 2012-08-13T04:26:41-07:00
Authentication code: 67789
Location: Tokyo, JAPAN

RGB <-> HCL conversion not correct

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: RGB <-> HCL conversion not correct

Post by magick »

Thanks for the problem report and patch. We'll commit it to the Subversion repository by sometime tomorrow.
Post Reply