]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 1 Jan 2012 20:59:57 +0000 (20:59 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 1 Jan 2012 20:59:57 +0000 (20:59 +0000)
coders/png.c

index e9938612aed1b30be44175bb685cdb8b168c0d3a..324b41a6740bcc5f3b9fde4a6ed2cd95440df54b 100644 (file)
@@ -3284,6 +3284,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
             {
               for (x=0; x < ping_num_trans; x++)
               {
+                 image->colormap[x].matte=MagickTrue;
                  image->colormap[x].alpha =
                    ScaleCharToQuantum((unsigned char)ping_trans_alpha[x]);
               }
@@ -3296,6 +3297,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
                  if (ScaleQuantumToShort(image->colormap[x].red) ==
                      transparent_color.alpha)
                  {
+                    image->colormap[x].matte=MagickTrue;
                     image->colormap[x].alpha = (Quantum) TransparentAlpha;
                  }
               }