From 6b7677c1276ec88585e6d2ab44fce25eefd30c9a Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 1 Jan 2012 20:59:57 +0000 Subject: [PATCH] --- coders/png.c | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.40.0