AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
September 2007

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2007.09.25 09:05 "TIFFClientOpen() fails for fiels with incorrect "ExtraSamples" field.", by Krishna Singh Karki
2007.09.26 01:52 "Re: TIFFClientOpen() fails for fiels with incorrect "ExtraSamples" field.", by Frank Warmerdam

2007.09.26 01:52 "Re: TIFFClientOpen() fails for fiels with incorrect "ExtraSamples" field.", by Frank Warmerdam

On 9/25/07, Krishna Singh Karki <kskarki@hotmail.com> wrote:
>
> 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?

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