From: dirk Date: Mon, 10 Feb 2014 12:07:00 +0000 (+0000) Subject: Fixed writing number of layers for image with alpha channel. X-Git-Tag: 7.0.1-0~2688 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3800818cd665c3a99c47dffba1942edc914e782e;p=imagemagick Fixed writing number of layers for image with alpha channel. --- diff --git a/coders/psd.c b/coders/psd.c index 64a0dbd70..99d6de5ee 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -2594,6 +2594,8 @@ static MagickBooleanType WritePSDImage(const ImageInfo *image_info,Image *image, else rounded_layer_info_size=layer_info_size; (void) SetPSDSize(&psd_info,image,rounded_layer_info_size); + if (next_image->alpha_trait == BlendPixelTrait) + layer_count=-layer_count; (void) WriteBlobMSBShort(image,(unsigned short) layer_count); layer_count=1; compression=base_image->compression;