From: glennrp Date: Fri, 1 Feb 2013 17:04:04 +0000 (+0000) Subject: Reverted some code in the PNG decoder that caused it to not detect X-Git-Tag: 7.0.1-0~4309 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=224ad8d90905c1c81d949c30e4a808246b4d5165;p=imagemagick Reverted some code in the PNG decoder that caused it to not detect transparency in paletted images. --- diff --git a/coders/png.c b/coders/png.c index 9b0967fbf..1bdd4a6d6 100644 --- a/coders/png.c +++ b/coders/png.c @@ -3615,6 +3615,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, (png_get_valid(ping,ping_info,PNG_INFO_tRNS))) ? BlendPixelTrait : UndefinedPixelTrait; +#if 0 /* I'm not sure what's wrong here but it does not work. */ if (image->alpha_trait == BlendPixelTrait) { if (ping_color_type == PNG_COLOR_TYPE_GRAY_ALPHA) @@ -3638,6 +3639,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, else (void) SetImageType(image,TrueColorType,exception); } +#endif /* Set more properties for identify to retrieve */ {