Bug 440216 - Digikam is duplicating existing EXIF tags on metadata save
Summary: Digikam is duplicating existing EXIF tags on metadata save
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-MetadataEdit (show other bugs)
Version: 7.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-24 07:00 UTC by Merlijn
Modified: 2021-07-26 06:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.4.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Merlijn 2021-07-24 07:00:10 UTC
SUMMARY
Digikam seems to be duplicating EXIF tags when saving tags, i.e. the EXIF tags increase by 1 on every save.

First and foremost: I have to say I'm very new to Digikam (and image tagging in general), so not sure if I'm doing something wrong or not. But I've looked at it for a long time and I have no idea. Seems like some kind of bug to me, or at least unwanted behavior.

STEPS TO REPRODUCE
1. Open an image in Digikam. In my case a .jpg image. It has a few existing EXIF tags like Make, Model and Software.
2. Open Tools -> Edit Metadata and edit or add something. In my case I edit the Creation Date.
3. Click Apply and/or OK.
4. In Digikam everything looks great.
5. I open the image in ExifToolGUI and check out the EXIF tags: (nearly) all EXIF tags are now duplicate: there's 2x Make, 2x Model, 2x Software, 2x XResolution, 2x YResolution etc. etc.
6. If I edit something in Digikam again and save the file, and re-open in ExifToolGUI the tags are now 3x. Edit and re-open: 4x. Etc. The EXIF tags keep duplicating. Not that it is not an ExifToolGUI bug; I quickly checked in a hex viewer and indeed all tags appear multiple times.

OBSERVED RESULT
Duplicated tags.

EXPECTED RESULT
There are a couple things that are unexpected to me:
- First and foremost I (obviously) expect Digikam to not duplicate EXIF tags into infinity.
- Secondly, I kinda expect Digikam to (somehow) notify me about tags being duplicated in the file. In Digikam there's absolutely no indication or mention that the EXIF tags all appear n number of times. While it's nice that the UI doesn't get bloated with duplicated tags, some indication would be useful.
- Thirdly; if this does end up being a user-error instead of a bug (maybe I have to change a setting or something?): I still think it's kind of weird behavior and there should be some kind of warning or notification or something. Since Digikam itself doesn't show anything (that I could find at least) about duplicate tags (my point above); I would've never have noticed if I didn't open the file in ExifToolGUI.


SOFTWARE/OS VERSIONS
Windows: Windows 10 Pro
Comment 1 Maik Qualmann 2021-07-24 07:48:55 UTC
This is a bug in the Metadata Editor, caused by changes in Exiv2-0.27.4 (ISOBMFF support). This problem has already been fixed. Please test the current pre-release digiKam-7.4.0 from here:

https://files.kde.org/digikam/

Corresponding Bug 439785

Maik
Comment 2 Merlijn 2021-07-26 06:19:17 UTC
Thanks for the info. I can indeed confirm that using a newer 7.4 version indeed fixes this issue :)