diff options
-rw-r--r-- | converter/other/pamtogif.c | 4 | ||||
-rw-r--r-- | doc/HISTORY | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/converter/other/pamtogif.c b/converter/other/pamtogif.c index 9b833214..6ec3067b 100644 --- a/converter/other/pamtogif.c +++ b/converter/other/pamtogif.c @@ -91,9 +91,9 @@ pamAlphaPlane(struct pam * const pamP) { if (streq(pamP->tuple_type, "RGB_ALPHA")) alphaPlane = 3; else if (streq(pamP->tuple_type, "GRAYSCALE_ALPHA")) - alphaPlane = 2; + alphaPlane = 1; else if (streq(pamP->tuple_type, "BLACKANDWHITE_ALPHA")) - alphaPlane = 2; + alphaPlane = 1; else alphaPlane = 0; diff --git a/doc/HISTORY b/doc/HISTORY index 2990736b..77e2fbc3 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -6,6 +6,11 @@ CHANGE HISTORY not yet BJH Release 10.95.00 + pamtogif: Fix failure with bogus message about wrong depth with + grayscale and black and white PAM images with transparency. + Always broken (pamtogif was new in Netpbm 10.37 (December 2006). + Thanks Karol Kosek <krkk@krkk.ct8.pl>. + Build: Fix build failure due to missing 'random' function on Mingw platform. Bug introduced in Netpbm 10.94 (March 2021). |