Bug 393283 - Caption not updating Exif.Image.ImageDescription field
Summary: Caption not updating Exif.Image.ImageDescription field
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Exif (show other bugs)
Version: 6.0.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-19 08:42 UTC by meku
Modified: 2018-04-19 19:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description meku 2018-04-19 08:42:24 UTC
Updating caption does not update the Exif.Image.ImageDescription field. The other Exif/Iptc/Xmp caption fields are updated.

Tested with digikam-6.0.0-git-20180418T014824-x86-64.appimage.
Comment 1 Maik Qualmann 2018-04-19 10:43:24 UTC
These conflicts with this Bug 368796 where the users want to make different entries in these fields. The current state is that Exif.Image.ImageDescription is only set if it is empty and does not always overwrite with the contents of Exif.Photo.UserComment. What to do?

Maik
Comment 2 Maik Qualmann 2018-04-19 10:52:11 UTC
I'll undo the change and add a new function to the Metadata Editor that will separately update Exif.Image.ImageDescription.

Maik
Comment 3 meku 2018-04-19 13:13:22 UTC
(In reply to Maik Qualmann from comment #1)
> These conflicts with this Bug 368796 where the users want to make different
> entries in these fields. The current state is that
> Exif.Image.ImageDescription is only set if it is empty and does not always
> overwrite with the contents of Exif.Photo.UserComment. What to do?
> 
> Maik

I found the problem was with this implementation in DK6 was with images that already had ImageDescription set, for example any image with a caption saved by DK5 or earlier where the default behaviour was to write the caption to this field.

Also if you delete the caption and synchronize it will delete all caption metadata except the ImageDescription, then the next time it rescans the file it will find the old ImageDescription and import it to the Caption again.
Comment 4 Maik Qualmann 2018-04-19 19:16:04 UTC
Git commit 85cca9ca2a58fa02e06b9b1f51196623f52278d8 by Maik Qualmann.
Committed on 19/04/2018 at 19:15.
Pushed by mqualmann into branch 'master'.

restore old behavior for writing to UserComment and ImageDescription
FIXED-IN: 6.0.0

M  +2    -1    NEWS
M  +1    -1    core/libs/dmetadata/metaengine.h
M  +5    -4    core/libs/dmetadata/metaengine_exif.cpp
M  +1    -1    core/utilities/metadataedit/exif/exifcaption.cpp

https://commits.kde.org/digikam/85cca9ca2a58fa02e06b9b1f51196623f52278d8