Page 1 of 1

LevelColorsImageChannel returns wrong status

Posted: 2014-01-06T04:11:49-07:00
by mtyaka
Since revision 13011 (http://trac.imagemagick.org/changeset/1 ... /enhance.c), the LevelColorsImageChannel function always returns 0 (MagickFalse).
This causes RMagick's level_colors to fail with recent ImageMagick versions (https://github.com/rmagick/rmagick/issues/94).

The 'status' variable is initialized to MagickFalse (http://trac.imagemagick.org/browser/Ima ... ce.c#L3283), and remains MagickFalse since status&=MagickTrue is still MagickFalse. It should probably be initialized to MagickTrue.

Re: LevelColorsImageChannel returns wrong status

Posted: 2014-01-06T05:11:58-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.8-2 Beta available by sometime tomorrow. Thanks.