]> granicus.if.org Git - imagemagick/commitdiff
Fixed enabling the alpha channel for the creation of the merged image.
authordirk <dirk@git.imagemagick.org>
Mon, 12 Oct 2015 15:31:15 +0000 (17:31 +0200)
committerdirk <dirk@git.imagemagick.org>
Mon, 12 Oct 2015 15:31:15 +0000 (17:31 +0200)
coders/psd.c

index d03c4ac9d53bd01f468b6010df76868578851062..aec0ae314c0ceb3fd39e74f414e37b18c6752108 100644 (file)
@@ -1911,6 +1911,7 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception)
 
       SetImageAlphaChannel(image,TransparentAlphaChannel,exception);
       image->background_color.alpha=TransparentAlpha;
+      image->background_color.alpha_trait=BlendPixelTrait;
       merged=MergeImageLayers(image,FlattenLayer,exception);
       ReplaceImageInList(&image,merged);
     }