[sane-devel] fillorder missing in scanimage
Jacek Pliszka
pliszka at phyun0.ucr.edu
Tue Dec 11 16:15:33 GMT 2001
Hi!
I posted a message some time ago but I got no reply.
This is what I got with netpbm library 9.20 :
[pliszka at snark hollik-fortsch]$ tifftopnm hollik-fortsch.165.tiff >
/dev/null
tifftopnm: writing PBM file
tifftopnm: invalid value for fillorder: 0
The reason:
scanimage puts wrong value (0 while should be 1 or 2)
in fillorder .tiff field. Fix:
--- orig/stiff.c Sat Dec 8 12:51:23 2001
+++ stiff.c Sat Dec 8 12:52:33 2001
@@ -212,6 +212,8 @@
add_ifd_entry (ifd, 259, IFDE_TYP_SHORT, 1, 1);
/* photometric interpretation */
add_ifd_entry (ifd, 262, IFDE_TYP_SHORT, 1, 0);
+ /* byte fill order */
+ add_ifd_entry (ifd, 266, IFDE_TYP_SHORT, 1, 1);
/* strip offset */
add_ifd_entry (ifd, 273, IFDE_TYP_LONG, 1, strip_offset);
/* orientation */
Coul someone apply it?
Thanks for a great tool!
Best Regards,
Jacek
P.S. Why don't you use libtiff ?
More information about the sane-devel
mailing list