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
January 2011

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

2011.01.05 21:38 "Cannot add EXIF tag to image being written (non-EXIF tags are being added)", by <peter.bauer@datamine.ca>
2011.01.05 22:17 "Re: Cannot add EXIF tag to image being written (non-EXIF tags are being added)", by Andreas Kleinert

2011.01.05 21:38 "Cannot add EXIF tag to image being written (non-EXIF tags are being added)", by <peter.bauer@datamine.ca>

Hello,

 

One more try.    I'm using v3.9.4 of libtiff and cannot add EXIF tag(s) to
the image being written.  ImageWriteTiff is the main call. Everything works
as expected except that the tag EXIFTAG_FOCALLENGTH is not being added to
the image.  No error occurs.

 

I just started using libtiff for adding tags a few days ago and am not sure
if I'm missing something that should be obvious (with experience with the
lib) or if I hit a bug.

 

// Works

      result = TIFFSetField(tiff, TIFFTAG_SUBFILETYPE, (USHORT) 0);

      ASSERT(result);

// Works

      result = TIFFSetField(tiff, TIFFTAG_MAKE, "Allied"); 

      ASSERT(result);

// Works

      result = TIFFSetField(tiff, TIFFTAG_MODEL, "GC2450C");

      ASSERT(result);

 

// Does not work - no error no tag value added to TIFF image when written -
other  tags added above are added

      result = TIFFSetField(tiff, EXIFTAG_FOCALLENGTH, (float) 12.5F);

      ASSERT(result);

 

Regards,

 

Peter