diff options
-rw-r--r-- | converter/other/pamtopng.c | 4 | ||||
-rw-r--r-- | converter/other/pnmtopng.c | 4 | ||||
-rw-r--r-- | doc/HISTORY | 6 |
3 files changed, 10 insertions, 4 deletions
diff --git a/converter/other/pamtopng.c b/converter/other/pamtopng.c index b61ab17b..088db3c8 100644 --- a/converter/other/pamtopng.c +++ b/converter/other/pamtopng.c @@ -84,9 +84,9 @@ parseChromaOpt(const char * const chromaOpt, &chromaP->gx, &chromaP->gy, &chromaP->bx, &chromaP->by); - if (count != 6) + if (count != 8) pm_error("Invalid syntax for the -rgb option value '%s'. " - "Should be 6 floating point number: " + "Should be 8 floating point numbers: " "x and y for each of white, red, green, and blue", chromaOpt); } diff --git a/converter/other/pnmtopng.c b/converter/other/pnmtopng.c index 23bd7d66..2230d226 100644 --- a/converter/other/pnmtopng.c +++ b/converter/other/pnmtopng.c @@ -187,9 +187,9 @@ parseRgbOpt(const char * const rgbOpt, &rgbP->gx, &rgbP->gy, &rgbP->bx, &rgbP->by); - if (count != 6) + if (count != 8) pm_error("Invalid syntax for the -rgb option value '%s'. " - "Should be 6 floating point number: " + "Should be 8 floating point numbers: " "x and y for each of white, red, green, and blue", rgbOpt); } diff --git a/doc/HISTORY b/doc/HISTORY index 40b35ba3..f57fcb3a 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -10,6 +10,12 @@ not yet BJH Release 11.02.00 pcdovtoppm: remove dependency on obsolete 'tempfile' program. + pamtopng: fix -chroma option: always rejected. Always broken. + pamtopng was new in Netpbm 10.70 (June 2015). + + pnmtopng: fix -rgb option: always rejected. Always broken + -rgb was new in Netpbm 10.30 (October 2005). + build: change the way you add the separately distributed 'hpcdtoppm' code to the build. |