]> granicus.if.org Git - imagemagick/commitdiff
Remove laze evaluation for SetImageAlphaChannel() alpha traits
authorCristy <urban-warrior@imagemagick.org>
Sat, 15 Aug 2015 21:02:03 +0000 (17:02 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 15 Aug 2015 21:02:03 +0000 (17:02 -0400)
MagickCore/channel.c

index 34ce618fae63d4c44420a67dc345e2b5a9680f61..c7f7102a4a494867fafee914311ae6385a173040 100644 (file)
@@ -1065,6 +1065,7 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
       /*
         Copy pixel intensity to the alpha channel.
       */
+      image->alpha_trait=UpdatePixelTrait;
       status=CompositeImage(image,image,IntensityCompositeOp,MagickTrue,0,0,
         exception);
       if (alpha_type == ShapeAlphaChannel)
@@ -1234,5 +1235,6 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
   }
   if (status == MagickFalse)
     return(status);
+  (void) SetPixelChannelMask(image,image->channel_mask);
   return(SyncImagePixelCache(image,exception));
 }