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 22:17 "Re: Cannot add EXIF tag to image being written (non-EXIF tags are being added)", by Andreas Kleinert

Hi,

there is no direct support for EXIF tags in libtiff - instead they
are kept in a private IFD (TIFFTAG_EXIFIFD) which has to be handled by
your custom code. You possibly might want to use a dedicated exif
library instead, like libexif or exifv2.

Best Regards,
Andreas, author of SView5

-------- Original Message  --------
Subject: [Tiff] Cannot add EXIF tag to image being written (non-EXIF
tags	are being added)
From: <peter.bauer@datamine.ca>
To: tiff@lists.maptools.org
Date: 05.01.2011 22:38

> 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