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
October 2005

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

2005.10.20 01:47 "Read EXIF Tag", by Chris Losinger
2005.10.20 12:34 "Re: Read EXIF Tag", by <lou.sakey@kodak.com>
2005.10.20 15:26 "Re: Read EXIF Tag", by Frank Warmerdam
2005.10.20 22:52 "Re: Read EXIF Tag", by Chris Losinger

2005.10.20 15:26 "Re: Read EXIF Tag", by Frank Warmerdam

> i just dropped-in LibTiff v3.7.4, and i'm having trouble reading tag
> 0x8769 (TIFFTAG_EXIFIFD).
>
>     long *offset = 0;
>     UINT16 count = 0;
>     BOOL bFound = TIFFGetField(tif, 0x8769, &count, &offset);
>
> is there anything i need to do before trying to read that tag ?

Chris,

As Lou suggests, you don't need the count in the call.  The problem
is that whether a count is required or not by TIFFGetField() is
determined by the  TIFFFieldInfo declaration for the field.  You
apparently used the configuration that required count, but when it
was formally added to libtiff it was done to not require the count.

Most built-in "known" tags that are single scalar values don't require
the count.  However we see a similar issue with unrecognised tags
which will always be declared as requiring the count in TIFFGetField
since we can't easily determine whether the tag we are seeing happens
to be an array with one value in it, or a real scalar.

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