MagickSetImageAlphaChannel always returns MagickFalse?

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
sacha
Posts: 17
Joined: 2012-04-12T14:37:19-07:00
Authentication code: 8675308

MagickSetImageAlphaChannel always returns MagickFalse?

Post by sacha »

In ImageMagick 6.7.9-4, there are several code paths in SetImageAlphaChannel (magick/channel.c) that will always return MagickFalse. The 'status' variable that is ultimately returned is initialised to MagickFalse, but the switch cases for ActivateAlphaChannel and DeactivateAlphaChannel (for example) do not set it to MagickTrue.

If this is intentional please let me know how to detect whether there's been an exception!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: MagickSetImageAlphaChannel always returns MagickFalse?

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.8.0-4 Beta available by sometime tomorrow. Thanks.
Post Reply