AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2005.05.31 19:41 "[Tiff] hot to detect corrupt tif file", by Gordon Hu
2005.05.31 23:46 "Re: [Tiff] hot to detect corrupt tif file", by Bruno Ledoux
2005.05.31 23:52 "Re: [Tiff] hot to detect corrupt tif file", by Edward Lam
2005.05.31 23:56 "Re: [Tiff] hot to detect corrupt tif file", by Andy Cave
2005.06.01 00:02 "Re: [Tiff] hot to detect corrupt tif file", by Bob Friesenhahn
2005.06.01 00:11 "Re: [Tiff] hot to detect corrupt tif file", by Andy Cave
2005.06.01 00:45 "Re: [Tiff] hot to detect corrupt tif file", by Bob Friesenhahn
2005.06.01 00:50 "Re: [Tiff] hot to detect corrupt tif file", by Andy Cave
2005.06.01 01:02 "Re: [Tiff] hot to detect corrupt tif file", by Bob Friesenhahn
2005.06.02 13:21 "[Tiff] Re: how to detect corrupt tif file", by Gordon Hu
2005.06.02 15:11 "Re: [Tiff] Re: how to detect corrupt tif file", by Antoine
2005.06.02 15:38 "Re: [Tiff] Re: how to detect corrupt tif file", by Edward Lam
2005.06.02 15:50 "Re: [Tiff] Re: how to detect corrupt tif file", by Antoine

2005.06.01 00:45 "Re: [Tiff] hot to detect corrupt tif file", by Bob Friesenhahn

Since most images are compressed, checking the band/tile offsets & sizes (and then reading each band/tile) is a good way of checking for this (corrupt file).

The above statement "most images are compressed" reveals your area of focus. In the RGB/color world, a large portion of the images are not compressed, leading many people to believe that TIFF is an inefficient format which does not support compression at all. In the black/white monochrome world, most images are compressed.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/