From: cristy Date: Sun, 1 Jan 2012 20:59:57 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6473 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b7677c1276ec88585e6d2ab44fce25eefd30c9a;p=imagemagick --- diff --git a/coders/png.c b/coders/png.c index e9938612a..324b41a67 100644 --- a/coders/png.c +++ b/coders/png.c @@ -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; } }