From: dirk Date: Fri, 26 Feb 2016 08:54:06 +0000 (+0100) Subject: Fixed reading 1-bit PSD file (https://github.com/ImageMagick/ImageMagick/issues/141) X-Git-Tag: 7.0.1-0~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6e0187105ab20b12bbc661f01b54e4894e92a5b;p=imagemagick Fixed reading 1-bit PSD file (https://github.com/ImageMagick/ImageMagick/issues/141) --- diff --git a/coders/psd.c b/coders/psd.c index ab510b865..85fdacb13 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -883,7 +883,7 @@ static MagickBooleanType ReadPSDChannelPixels(Image *image, for (bit = 0; bit < number_bits; bit++) { SetPSDPixel(image,channels,type,packet_size,(((unsigned char) pixel) - & (0x01 << (7-bit))) != 0 ? 0 : 255,q,exception); + & (0x01 << (7-bit))) != 0 ? 0 : QuantumRange,q,exception); q+=GetPixelChannels(image); x++; }