Bug 416231 - exif date not written to sidecar file when modified, nor is it updated in the metadata sidebar
Summary: exif date not written to sidecar file when modified, nor is it updated in the...
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Sidecar (show other bugs)
Version: 7.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-14 09:08 UTC by Kristian Karl
Modified: 2020-01-14 15:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Karl 2020-01-14 09:08:28 UTC
SUMMARY
When modifying the exif original date, digikam does not write the change to the sidecar file. Nor is the change displayed in the metadata exif sidebar.

STEPS TO REPRODUCE
1. In settings, make sure metadata is read and written to sidecar file. (Write to sidecar only)
2. For an image, with an existing sidecar file, modify the original exif date: Item -> Adjust Time & Date
3. Modify only the exif: original date (click Apply and close the dialog)


OBSERVED RESULT
1. The Metadata [exif] sidebar still displays the old value for Date and Time (original) 
2. The sidecar file still holds the old value for exif:DateTimeOriginal

EXPECTED RESULT
1. The Metadata [exif] sidebar displays changed value for Date and Time (original) 
2. The value for exif:DateTimeOriginal in the sidecar file is changed to the modified value

OTHER INFORMATION
Only when performing a Item -> Write Metadata to File, the expected results are achieved. 

SOFTWARE/OS VERSIONS
Tested on Digikam built from sources: rev 56b92b644e3196373ecc656e3e9bb614ed193139
and on App image digikam-7.0.0-beta2-20200112T071518-x86-64.appimage

Operating System: KDE neon 5.17
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.13.2
Kernel Version: 4.15.0-74-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-7500U CPU @ 2.70GHz
Memory: 15.4 GiB of RAM
Comment 1 Maik Qualmann 2020-01-14 11:41:25 UTC
You only write in XMP. An "Exif.Photo.DateTimeOriginal" does not exist in XMP. In this case you also have to select [x] XMP in the Time Adjust Tool. Then "Xmp.exif.DateTimeOriginal" is written.

Maik
Comment 2 Kristian Karl 2020-01-14 12:13:11 UTC
Ah, true. I missed that. Thanks for clarifying.

But how come is actually changes when I do a "Item -> Write Metadata to File"?
Maybe
Comment 3 Maik Qualmann 2020-01-14 12:26:37 UTC
The updated original date is always transferred to the database by the Time Adjust Tool. The function write metadata to the file always writes all metadata, i.e. EXIF, IPTC and XMP.

Maik
Comment 4 Kristian Karl 2020-01-14 13:00:49 UTC
Should not the update to the database (by the Time Adjust Tool) be reflected in the [left] Metadata sidebar?
Comment 5 Kristian Karl 2020-01-14 13:07:30 UTC
Sorry, not left sidebar. I meant the right metadata sidebar in the comment above.
Comment 6 Maik Qualmann 2020-01-14 13:34:05 UTC
No, the metadata sidebar reflects the actual metadata in the image / sidecar. The date from the database can be found in the icon view below the thumbnail and is used for all DB queries. In principle it is the same as in the metadata. But a user who does not want to change his metadata has the option to change the date used in digiKam - until the next read of the metadata from the file.

Maik
Comment 7 Kristian Karl 2020-01-14 14:56:34 UTC
Okay, got it!