From c6e0187105ab20b12bbc661f01b54e4894e92a5b Mon Sep 17 00:00:00 2001 From: dirk Date: Fri, 26 Feb 2016 09:54:06 +0100 Subject: [PATCH] Fixed reading 1-bit PSD file (https://github.com/ImageMagick/ImageMagick/issues/141) --- coders/psd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- 2.40.0