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.
Which Exiv2 version is used, look under Help-> Component Info. Maik
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 ***
Tried it with Exiv2 0.27.4 and 0.27.5. Same issue with both.
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
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
Maik, Exiv2 0.27.5 notes : https://github.com/Exiv2/exiv2/issues/1018#issuecomment-895425552 Gilles
Fixed with # 439785