2011.01.05 21:38 "[Tiff] Cannot add EXIF tag to image being written (non-EXIF tags are being added)", by

2011.01.05 21:38 "[Tiff] Cannot add EXIF tag to image being written (non-EXIF tags are being added)", by

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