| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2011.01.05 22:17 "Re: Cannot add EXIF tag to image being written (non-EXIF tags are being added)", by Andreas KleinertHi, 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 |
|||||||