diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-03-22 01:24:19 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-03-22 01:24:19 +0000 |
commit | a36d2f6acdddc16d78f2f986c5ff58a91f4630b8 (patch) | |
tree | cb970064adf445ce689cbae6b29fc8a9dbd0f903 /converter/other/pnmtopng.c | |
parent | e3c883f91be7421e0822ec5fdc27099761a672f9 (diff) | |
download | netpbm-mirror-a36d2f6acdddc16d78f2f986c5ff58a91f4630b8.tar.gz netpbm-mirror-a36d2f6acdddc16d78f2f986c5ff58a91f4630b8.tar.xz netpbm-mirror-a36d2f6acdddc16d78f2f986c5ff58a91f4630b8.zip |
Release 10.86.20
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@4059 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pnmtopng.c')
-rw-r--r-- | converter/other/pnmtopng.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/converter/other/pnmtopng.c b/converter/other/pnmtopng.c index 60b8276b..ed852fd0 100644 --- a/converter/other/pnmtopng.c +++ b/converter/other/pnmtopng.c @@ -961,6 +961,8 @@ tryTransparentColor(FILE * const ifp, } } } + *singleColorIsTransP = singleColorIsTrans; + pnm_freerow(xelrow); } @@ -1468,9 +1470,14 @@ computeUnsortedAlphaPalette(FILE * const ifP, int row; xel * xelrow; unsigned int alphaColorPairCnt; + /* Number of different alpha/color pairs we've seen so far as we + iterate through the image. + */ cht = ppm_colorhisttocolorhash(chv, colors); + /* We have not seen any alphas of any color yet. */ + alphaColorPairCnt = 0; for (colorIndex = 0; colorIndex < colors; ++colorIndex) { alphasOfColor[colorIndex] = NULL; alphasOfColorCnt[colorIndex] = 0; |