Hi list, hi Peter,
it seems, that there's a bug in the TIFF output for scanimage (file stiff.c)
according to RGB pictures.
GIMP seems to ignore this incorrect TIFF-header, while kview
produces rubbish...
The problem:
When writing the TIFF header, you have to specify the TAG
"BitsPerSample", which tells a reader how many bits each sample
has. The current version only specifies one value (8 or 16). This
is wrong, as we have to specify one value for each channel (i.e
for a 24bit RGB pic we must specify 8,8,8, see TIFF6.0 spec,
page 24).
The attached patch solves this problem - Peter you might
apply the patch and test again!
Best regards
Gerhard
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Tue Nov 14 2000 - 07:01:42 PST