diff options
-rw-r--r-- | converter/other/pamtopng.c | 3 | ||||
-rw-r--r-- | doc/HISTORY | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/converter/other/pamtopng.c b/converter/other/pamtopng.c index ae9e14ea..327a2b1f 100644 --- a/converter/other/pamtopng.c +++ b/converter/other/pamtopng.c @@ -795,7 +795,8 @@ pngBitDepth(unsigned int const pnmBitDepth, unsigned int retval; if ((pngColorType == PNG_COLOR_TYPE_RGB || - pngColorType == PNG_COLOR_TYPE_RGB_ALPHA) && + pngColorType == PNG_COLOR_TYPE_RGB_ALPHA || + pngColorType == PNG_COLOR_TYPE_GRAY_ALPHA) && pnmBitDepth < 8) { retval = 8; diff --git a/doc/HISTORY b/doc/HISTORY index e0d60db2..bb810280 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -11,6 +11,10 @@ not yet BJH Release 10.95.00 Netpbm 10.71 (June 2015)). Thanks Karol Kosek <krkk@krkk.ct8.pl>. + pamtopng: Fix failure with GRAYSCALE_ALPHA images with maxval + less than 255. Always broken (pamtopng was new in Netpbm 10.71 + (June 2015)). Thanks Karol Kosek <krkk@krkk.ct8.pl>. + pamtopng: Fix: treats all tuple types that start with BLA as BLACKANDWHITE. Always broken (pamtopng was new in Netpbm 10.71 (June 2015)). |