TIFF and LibTiff Mail List Archive


2003.09.12 16:50 "[Tiff] BACON format help", by Colin B. Thomas
2003.09.12 17:54 "[Tiff] BACON format help", by Tom Kacvinsky
2003.09.12 18:05 "[Tiff] BACON format help", by James Belshan
2003.09.12 19:44 "[Tiff] Re: BACON format help", by Tom Kacvinsky

2003.09.12 16:50 "[Tiff] BACON format help", by Colin B. Thomas


I am currently working with a format issued by the European Patent Office called BACON. It consists of a 255 byte header and what they say is a raw Group IV compressed tiff image (such as would be received by a fax machine). Knowing this, I stripped out the 255 byte header for later analysis and tried to use fax2tiff (v3.6.0beta) to convert the raw fax-like image into a tiff image. However, when I look at the tiff that is created, it is just a blank page with a few thin lines here and there. The document should look like a bunch of text (like a report). When I run the following command:

fax2tiff -o out.tif -4 testtiff

I get the following out put

Fax4Decode: stripped: Bad code word at scanline 232 (x 1729).
Fax4Decode: stripped: Bad code word at scanline 234 (x 0).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 245 (x 0).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 268 (x 0).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 274 (x 0).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 287 (x 0).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 395 (x 0).
Fax4Decode: stripped: Bad code word at scanline 497 (x 1726).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 505 (x 1727).
Fax4Decode: stripped: Bad code word at scanline 516 (x 1727).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 765 (x 0).
Fax4Decode: stripped: Bad code word at scanline 804 (x 1727).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 1009 (x 1727).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 1010 (x 1726).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 1019 (x 1727).
Fax4Decode: stripped: Bad code word at scanline 1025 (x 1725).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 1030 (x 1727).
Fax4Decode: stripped: Bad code word at scanline 1031 (x 1726).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 1053 (x 1727).
Fax4Decode: stripped: Uncompressed data (not supported) at scanline 1061 (x 1726).
Fax4Decode: stripped: Bad code word at scanline 1127 (x 41).
Fax4Decode: stripped: Bad code word at scanline 1134 (x 1727).

here is the output for running the same command on the raw data w/o stripping out the header

Fax4Decode: testtiff: Uncompressed data (not supported) at scanline 0 (x 1725).
Fax4Decode: testtiff: Bad code word at scanline 2 (x 0).
Fax4Decode: testtiff: Uncompressed data (not supported) at scanline 8 (x 1726).
Fax4Decode: testtiff: Uncompressed data (not supported) at scanline 10 (x 1726).
Fax4Decode: testtiff: Bad code word at scanline 14 (x 1725).
Fax4Decode: testtiff: Bad code word at scanline 15 (x 0).
Fax4Decode: testtiff: Bad code word at scanline 16 (x 0).
Fax4Decode: testtiff: Bad code word at scanline 17 (x 0).
Fax4Decode: testtiff: Bad code word at scanline 18 (x 0).
Fax4Decode: testtiff: Bad code word at scanline 19 (x 0).
Fax4Decode: testtiff: Bad code word at scanline 20 (x 0).
Fax4Decode: testtiff: Bad code word at scanline 21 (x 0).
Fax4Decode: testtiff: Uncompressed data (not supported) at scanline 22 (x 0).
Fax4Decode: testtiff: Uncompressed data (not supported) at scanline 27 (x 1727).
Fax4Decode: testtiff: Uncompressed data (not supported) at scanline 28 (x 10).
Fax4Decode: testtiff: Bad code word at scanline 29 (x 3).
Fax4Decode: testtiff: Bad code word at scanline 33 (x 1725).
Fax4Decode: testtiff: Bad code word at scanline 34 (x 0).
Fax4Decode: testtiff: Bad code word at scanline 35 (x 0).
Fax4Decode: testtiff: Bad code word at scanline 36 (x 0).

Does anyone have any ideas about what is going wrong or what I should do to find out what is wrong. I am brand new to the tiff format.

Colin Thomas