diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2010-04-24 02:01:54 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2010-04-24 02:01:54 +0000 |
commit | 563b657255bada6b1790be6c2ff201bf84137c5f (patch) | |
tree | 517539c87f80a9cd433f0ca8d433453095efb47c | |
parent | 28f1083728b43bef203f1d2d6bd42d1a71315dc5 (diff) | |
download | netpbm-mirror-563b657255bada6b1790be6c2ff201bf84137c5f.tar.gz netpbm-mirror-563b657255bada6b1790be6c2ff201bf84137c5f.tar.xz netpbm-mirror-563b657255bada6b1790be6c2ff201bf84137c5f.zip |
Fix bug: 12 bit output when 8 would do
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1198 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/pnmtops.c | 2 | ||||
-rw-r--r-- | doc/HISTORY | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/converter/other/pnmtops.c b/converter/other/pnmtops.c index b43cb483..1568bd28 100644 --- a/converter/other/pnmtops.c +++ b/converter/other/pnmtops.c @@ -1001,6 +1001,8 @@ computeDepth(xelval const inputMaxval, *bitspersampleP = 2; else if (bitsRequiredByMaxval <= 4) *bitspersampleP = 4; + else if (bitsRequiredByMaxval <= 8) + *bitspersampleP = 8; else { /* Post script level 2 defines a format with 12 bits per sample, but I don't know the details of that format (both RLE and diff --git a/doc/HISTORY b/doc/HISTORY index 7397c901..65a47c43 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -14,6 +14,9 @@ not yet BJH Release 10.51.00 pnmsmooth: Don't display pnmconvol messages (i.e. run pnmconvol with -quiet). + pnmtops: fix bug: 12 bits per sample output when 8 would do. + Introduced in 10.40. + palmtopnm: fix for pixel size 16. Thanks Paul Bolle <pebolle@tiscali.nl>. |