exiv2 icon indicating copy to clipboard operation
exiv2 copied to clipboard

Error setting OffsetTime

Open sluge opened this issue 1 year ago • 4 comments

Describe the bug

Unable to set value for OffsetTime

To Reproduce

exifData["Exif.Photo.OffsetTime"] = "01:00:00";

terminate called after throwing an instance of 'Exiv2::BasicError' what(): Invalid tag name or ifdId `OffsetTime', ifdId 5 Aborted (core dumped)

Expected behavior

A short description of what you expected to happen.

Desktop (please complete the following information):
  • OS and version: Ubuntu 20.04.4 LTS

  • Compiler and version:gcc 9.4.0

  • Compilation mode and/or compiler flags:

The same issue with Exif.Photo.OffsetTimeOriginal, Exif.Photo.OffsetTimeDigitized

sluge avatar Aug 08 '22 13:08 sluge

@sluge I tried to reproduce this but don't get the same error.

Which exiv2 version? Can you try and provide a minimal reproducer?

hassec avatar Aug 16 '22 08:08 hassec

I changed the example from the package addmodel.cpp with the following code

exifData["Exif.Photo.OffsetTime"] = "01:00:00";
exifData["Exif.Photo.OffsetTimeOriginal"] = "01:00:00";

and got an error: Caught Exiv2 exception 'Invalid tag name or ifdId OffsetTime', ifdId 5'`

I use the following version: libexiv2-27/now 0.27.2-8ubuntu2.7 Is it enough to reproduce?

sluge avatar Aug 31 '22 13:08 sluge

@sluge it is a bug that was fixed in some later patch release. The solution is to manually install the latest version of the lib yourself. https://github.com/Exiv2/exiv2/releases/tag/v0.27.5

Hope this helps.

bh90210 avatar Sep 16 '22 04:09 bh90210

It looks like these were indeed added in 0.27.4: https://github.com/Exiv2/exiv2/issues/1396

When reporting issues, please do it with the latest version.

kmilos avatar Sep 16 '22 08:09 kmilos