2007.09.26 01:52 "Re: [Tiff] TIFFClientOpen() fails for fiels with incorrect "ExtraSamples" field.", by Frank Warmerdam
On 9/25/07, Krishna Singh Karki <kskarki@hotmail.com> wrote:
I am using TIFF library version 3.8.2 and I am facing problem opening certain scanned tiff files.
I am using TIFFClientOpen() function to read tiff files. For a test tiff file, I get a warning message
incorrect count for field "ExtraSamples" (0, expecting 1); tag ignored. and then the above call to TIFFClientOpen() returns NULL.
I looked at tiff sources and the warning is thrown from CheckDirCount() function in tif_dirread.c() function. Since the above message indicates a warning on debugging I saw that it will always fail in above case.
Is this a known issue? Is it due to the file being corrupt value for tag?
Krishna,
It sounds like libtiff reacts unnecessarily harshly to what I presume is an incorrectly setup TIFF file. If you can file a bug report on this with a moderately sized example file I hope we could do something about this.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent