From: cristy Date: Mon, 15 Mar 2010 20:01:20 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9793 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2cde924f2e88daf9198f7f98f112b5ade8184ba;p=imagemagick --- diff --git a/coders/pnm.c b/coders/pnm.c index 6471e0ef3..fb048c622 100644 --- a/coders/pnm.c +++ b/coders/pnm.c @@ -2005,12 +2005,6 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image) q=PopCharPixel((unsigned char) pixel,q); pixel=ScaleQuantumToAny(p->blue,range); q=PopCharPixel((unsigned char) pixel,q); - if (image->matte != MagickFalse) - { - pixel=ScaleQuantumToAny((Quantum) (QuantumRange- - GetOpacityPixelComponent(p)),range); - q=PopCharPixel((unsigned char) pixel,q); - } p++; } else @@ -2022,12 +2016,6 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image) q=PopShortPixel(MSBEndian,(unsigned short) pixel,q); pixel=ScaleQuantumToAny(p->blue,range); q=PopShortPixel(MSBEndian,(unsigned short) pixel,q); - if (image->matte != MagickFalse) - { - pixel=ScaleQuantumToAny((Quantum) (QuantumRange- - GetOpacityPixelComponent(p)),range); - q=PopShortPixel(MSBEndian,(unsigned short) pixel,q); - } p++; } extent=(size_t) (q-pixels);