LevelColorsImageChannel returns wrong status

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
mtyaka
Posts: 4
Joined: 2013-01-28T00:46:42-07:00
Authentication code: 6789

LevelColorsImageChannel returns wrong status

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

Re: LevelColorsImageChannel returns wrong status

Post 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.
Post Reply