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
June 1999

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date


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

Valid HTML 4.01!

1999.06.16 00:10 "Is there a bug in TIFFGetField for ICC profiles?", by Terry Wells


I vaguely remember something like this coming up before, but it only matters to
me now so I guess I need to ask again.  You know how it goes...  :-)

I'm trying to look at a TIFF file and determine if it contains an ICC profile.

My code looks something like:
    if (TIFFGetField(tif, TIFFTAG_ICCPROFILE, &profileLength, &profileData))

The problem is, TIFFGetField always returns TRUE, even if the file does not
contain a profile.

I dug through the library briefly (beta037), but didn't locate anything
obviously wrong.

If anyone else has noticed and/or debugged this, I'd love to hear about it.

Thanks so much,