exiv2
exiv2 copied to clipboard
Error setting OffsetTime
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
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 I tried to reproduce this but don't get the same error.
Which exiv2 version? Can you try and provide a minimal reproducer?
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 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.
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.