Bug 225272

Summary: digiKam destroy some Exif data with Exiv2 - Use ExifTool instead.
Product: [Applications] digikam Reporter: Johann-Nikolaus Andreae <johann-nikolaus>
Component: Metadata-ExifToolAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 1.2.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 8.0.0
Sentry Crash Report:
Attachments: diff from the exiftool output
Image before
Image after

Description Johann-Nikolaus Andreae 2010-02-02 15:01:48 UTC
Version:           1.2.0 (rev.: 1084045) (using 4.3.98 (KDE 4.3.98 (KDE 4.4 RC3)) "release 216", KDE:KDE4:Factory:Desktop / openSUSE_11.2)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31.8-0.1-desktop

If digikam writes exif data to a image some tags a destroyed after.

I look with exiftool to some imagemetadata an see that some data are wrong/unknown.
This is happened with a lot of pictures, so i take a new picture. This data are ok.
If i set a tag with digikam to this picture the data are broken.
Comment 1 caulier.gilles 2010-02-02 15:12:24 UTC
Which file Format ?

Which Exiv2 version you use ? (look Help/Components Info for details)

Please give us image to investiguate : one before changes (fine), one after changes (altered)

Thanks in advance

Gilles Caulier
Comment 2 Johann-Nikolaus Andreae 2010-02-02 15:18:21 UTC
Created attachment 40460 [details]
diff from the exiftool output

The changes are at the end of the line
Comment 3 Johann-Nikolaus Andreae 2010-02-02 15:26:58 UTC
Created attachment 40461 [details]
Image before
Comment 4 Johann-Nikolaus Andreae 2010-02-02 15:28:28 UTC
Created attachment 40462 [details]
Image after
Comment 5 Johann-Nikolaus Andreae 2010-02-02 15:30:43 UTC
libexiv2 has the version 0.18.2
Comment 6 Johann-Nikolaus Andreae 2010-02-11 20:57:32 UTC
I have repruduce the bug with exiv2. It is a bug in libexiv.
http://dev.exiv2.org/issues/show/682
Comment 7 Johannes Wienke 2010-02-12 09:14:04 UTC
Ok, can you please report this at the exiv2 bug tracker. I will mark this as upstream here.
Comment 8 Johann-Nikolaus Andreae 2010-02-12 12:30:27 UTC
I have report it all ready see link above.
Comment 9 caulier.gilles 2021-04-25 10:08:15 UTC
Johann,

This problem still reproducible with digiKam 7.x and Exiv2 0.27.x ?

Gilles Caulier
Comment 10 caulier.gilles 2022-04-10 09:01:43 UTC
Fixed with the new support of ExifTool to write metadata in place of Exiv2.