Bug 444903 - Digikam not updating image metadata
Summary: Digikam not updating image metadata
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Engine (show other bugs)
Version: 7.2.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-03 19:38 UTC by Roger Noble
Modified: 2021-12-15 20:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Noble 2021-11-03 19:38:57 UTC
SUMMARY

Attempting to update image metadata in Digikam fails, producing the error

digikam.metaengine: Cannot save metadata using Exiv2   (Error # 21 :  "Failed to write image"

STEPS TO REPRODUCE
1. In Digikam select Item->Edit Metadata... for an image
2. Change any of the XMP data (for example)
3. Click on OK

OBSERVED RESULT
The metadata are not updated. The above error is produced when run from the terminal.

EXPECTED RESULT
The metadata should be updated.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I've also tried this with a build of digikam 7.3.0 and the result is the same.
The problem did not exist on Fedora 34 with the same version of digikam.
Comment 1 Maik Qualmann 2021-11-03 20:01:17 UTC
Which Exiv2 version is used, look under Help-> Component Info.

Maik
Comment 2 Maik Qualmann 2021-11-03 21:21:48 UTC
We know the Exiv2 error message together with the Metadata Editor and an Exiv2-0.27.4 version. The problem has been fixed in digiKam-7.4.0. 

Maik

*** This bug has been marked as a duplicate of bug 439785 ***
Comment 3 Roger Noble 2021-11-03 22:39:25 UTC
Tried it with Exiv2 0.27.4 and 0.27.5. Same issue with both.
Comment 4 Maik Qualmann 2021-11-04 06:48:50 UTC
Up to digiKam-7.3.0 version only Exiv2-0.27.3 works. From Exiv2-0.27.4 version digiKam-7.4.0 is required.

Maik
Comment 5 caulier.gilles 2021-11-05 12:00:23 UTC
Git commit 36a60c0ee66fb3b11b7c2db967c23cd5f62c39d5 by Gilles Caulier.
Committed on 05/11/2021 at 11:59.
Pushed by cgilles into branch 'master'.

update all bundles with last stable Exiv2 0.27.5

M  +3    -2    NEWS
M  +3    -3    project/bundles/3rdparty/ext_exiv2/CMakeLists.txt

https://invent.kde.org/graphics/digikam/commit/36a60c0ee66fb3b11b7c2db967c23cd5f62c39d5
Comment 6 caulier.gilles 2021-11-05 12:03:13 UTC
Maik, 

Exiv2 0.27.5 notes : https://github.com/Exiv2/exiv2/issues/1018#issuecomment-895425552

Gilles
Comment 7 caulier.gilles 2021-12-15 20:49:55 UTC
Fixed with # 439785