[sane-devel] fillorder missing in scanimage

Peter Kirchgessner peter at kirchgessner.net
Tue Dec 11 19:55:22 GMT 2001


Hi Jacek,

I would prefer that the bug in tifftopnm should be fixed. scanimage does 
not write a wrong value to the fillorder tag because is does not write 
the fill order tag at all.
The fillorder tag is not a required tag. And the default value for 
fillorder is 1. So if the tool tifftopnm assumes a value of 0 this is wrong.
If someone wants a more flexible output for TIFF, libtiff could be used. 
But now only uncompressed TIFF is created. So we don't need an 
additional dependency on the libtiff-package. This might be available on 
most Linux machines. But for other Unix-System you may need to install it.

Sincerely

Peter

Jacek Pliszka wrote:

> 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 ?
> 
> _______________________________________________
> Sane-devel mailing list
> Sane-devel at www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel
> 
> 


-- 
Peter Kirchgessner
http://www.kirchgessner.net
mailto:peter at kirchgessner.net





More information about the sane-devel mailing list