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,