From: Cristy Date: Tue, 9 May 2017 00:02:18 +0000 (-0400) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31879 X-Git-Tag: 7.0.5-6~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5239ac04c96414fa0df825af14bf2378ee0c4a6e;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31879 --- diff --git a/MagickCore/channel.c b/MagickCore/channel.c index 7bf76ba1d..4792927ed 100644 --- a/MagickCore/channel.c +++ b/MagickCore/channel.c @@ -1259,6 +1259,9 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image, /* Set alpha channel by shape. */ + status=SetImageStorageClass(image,DirectClass,exception); + if (status == MagickFalse) + break; image->alpha_trait=UpdatePixelTrait; (void) SetImageMask(image,WritePixelMask,image,exception); (void) LevelImageColors(image,&image->background_color,