2007.09.25 09:05 "[Tiff] TIFFClientOpen() fails for fiels with incorrect "ExtraSamples" field.", by Krishna Singh Karki

2007.09.25 09:05 "[Tiff] TIFFClientOpen() fails for fiels with incorrect "ExtraSamples" field.", by Krishna Singh Karki

Hi All,

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?

thanks in advance
-Krishna

_________________________________________________________________

More photos; more messages; more whatever – Get MORE with Windows Live™ Hotmail®. NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907