2010.11.08 17:51 "[Tiff] Problems converting tiff", by James Lamanna

2010.11.09 05:10 "Re: [Tiff] Problems converting tiff", by Lee Howard

I'm trying to convert the following tiff for faxing, however, I always receive the following LIBTIFF errors, and then most of my tiff ends up having a large black box on it:

This TIFF came from an EMR system, so the format of it cannot be changed. Some TIFF viewers can view the whole tiff properly (Irfanview) but others stop displaying at the error.

Is there anyway to ignore these errors and continue processing?

The TIFF is located at: http://ugcs.caltech.edu/~jlamanna/72650-3aab.tif

Thanks.

-- James

Errors:

convert: 72650-3aab.tif: Premature EOL at line 0 of strip 1 (got 0, expected 1728). `Fax3Decode1D' @ tiff.c/TIFFWarnings/526. convert: 72650-3aab.tif: Premature EOL at line 0 of strip 2 (got 0, expected 1728). `Fax3Decode1D' @ tiff.c/TIFFWarnings/526. convert: 72650-3aab.tif: Premature EOL at line 0 of strip 3 (got 0, expected 1728). `Fax3Decode1D' @ tiff.c/TIFFWarnings/526. convert: 72650-3aab.tif: Premature EOL at line 0 of strip 4 (got 0, expected 1728). `Fax3Decode1D' @ tiff.c/TIFFWarnings/526. convert: 72650-3aab.tif: Premature EOL at line 0 of strip 5 (got 0, expected 1728). `Fax3Decode1D' @ tiff.c/TIFFWarnings/526. convert: 72650-3aab.tif: Premature EOL at line 0 of strip 6 (got 0, expected 1728). `Fax3Decode1D' @ tiff.c/TIFFWarnings/526. convert: 72650-3aab.tif: Premature EOL at line 0 of strip 7 (got 0, expected 1728). `Fax3Decode1D' @ tiff.c/TIFFWarnings/526. convert: 72650-3aab.tif: Premature EOL at line 0 of strip 8 (got 0, expected 1728). `Fax3Decode1D' @ tiff.c/TIFFWarnings/526. convert: 72650-3aab.tif: Premature EOF at line 0 of strip 9 (x 0). `Fax3Decode1D' @ tiff.c/TIFFWarnings/526. convert: 72650-3aab.tif: Premature EOL at line 0 of strip 9 (got 0, expected 1728). `Fax3Decode1D' @ tiff.c/TIFFWarnings/526.

The software that produced that TIFF is a mess. It sticks loose EOLs in there all over the place unnecessarily.

You can "fix" it by doing this:

tiffcp -i 72650-3aab.tif new.tif

Note the "-i". new.tif will be "clean".

Thanks,

Lee.