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:56 "Re: [Tiff] hot to detect corrupt tif file", by Andy Cave
- 2005.06.02 13:21 "[Tiff] Re: how to detect corrupt tif file", by Gordon Hu
2005.06.01 00:11 "Re: [Tiff] hot to detect corrupt tif file", by Andy Cave
Hi Bob.
It all depends on if you're talking about a corrupt file, or a corrupt image.
If the TIFF image is compressed, then you're only likely to encounter a corrupt file.
If the TIFF image is not compressed, then yes you can get a corrupt image (as well as a corrupt file) and not know about it at all.
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).
[To check for a corrupt image, you'd need to use some sort of checksum on the image data.]
Andy.