]> granicus.if.org Git - imagemagick/commitdiff
Reverted some code in the PNG decoder that caused it to not detect
authorglennrp <glennrp@git.imagemagick.org>
Fri, 1 Feb 2013 17:04:04 +0000 (17:04 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Fri, 1 Feb 2013 17:04:04 +0000 (17:04 +0000)
transparency in paletted images.

coders/png.c

index 9b0967fbf3197051538e760fd68d2bb1449023cb..1bdd4a6d6de4ff7e086cbf7bbc3e82b629b8430b 100644 (file)
@@ -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 */
    {