Bug 420661

Summary: Wishlist: option to clear/delete specific date field in a picture selection
Product: [Applications] digikam Reporter: MarcP <iwannaberich>
Component: Plugin-Generic-TimeAdjustAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: iwannaberich, metzpinguin
Priority: NOR    
Version First Reported In: 7.0.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.0.0
Sentry Crash Report:
Attachments: Remove timestamp proposal
BQM Remove metadata

Description MarcP 2020-04-27 12:10:39 UTC
Created attachment 127922 [details]
Remove timestamp proposal

SUMMARY
I miss an option to clear a specific date field from a picture. You can do what using the metadata editor, one by one, but it is quite tedious if you need to do that to a whole folder.

For instance, let's say you scan a picture album, and the scanner software places a date in the "XMP Creation date". However, you prefer to use the "Exif original date and time field" for dating your pictures. If the two fields have different values, it can led to conflicts (e.g. not using the indended date for sorting). There should be an easy way to delete the "XMP Creation date" field in a whole picture selection. Using the "Adjust time and date" tool, you can modify those dates (so they match), but not delete them.

I currently use an exiv2 command to achieve this. For instance, to delete all XMP dates in a picture folder I run this: 

exiv2 -v -M"del Xmp.xmp.ModifyDate" -M"del Xmp.xmp.CreateDate" -M"del Xmp.xmp.MetadataDate" -M"del Xmp.exif.DateTimeOriginal" -M"del Xmp.photoshop.DateCreated" -M"del Xmp.tiff.DateTime" -M"del Xmp.video.DateTimeOriginal" -M"del Xmp.video.DateUTC" -M"del Xmp.video.ModificationDate"  *.jpg

But this is just a workaround. It would be great if it could be done from within the interface. Either in the "Adjust time and date" tool, or in the "Metadata editor". I have attached a mockup with a possible solution.
Comment 1 Maik Qualmann 2020-04-28 12:08:15 UTC
I think the "Adjust time and date" tool is not the right place to remove date metadata. All settings that can be made would be useless to remove metadata. We have a BQM tool to remove metadata, here we can easily add the option to remove date metadata.

Maik
Comment 2 MarcP 2020-04-28 12:43:35 UTC
Created attachment 127945 [details]
BQM Remove metadata

Here, you mean? I guess there could be more specific options under each "remove exif, iptc, xmp"...
Comment 3 Maik Qualmann 2020-05-01 08:35:04 UTC
Git commit 2a25f8efaede437b0b8e77afc439be60ef659aa7 by Maik Qualmann.
Committed on 01/05/2020 at 08:33.
Pushed by mqualmann into branch 'master'.

add date section to the BQM remove metadata plugin
FIXED-IN: 7.0.0

M  +2    -1    NEWS
M  +141  -40   core/dplugins/bqm/metadata/removemetadata/removemetadata.cpp
M  +10   -7    core/dplugins/bqm/metadata/removemetadata/removemetadata.h

https://invent.kde.org/kde/digikam/commit/2a25f8efaede437b0b8e77afc439be60ef659aa7
Comment 4 MarcP 2020-05-01 12:24:15 UTC
Thank you, Maik!

I will try it as soon as it's included in a next build, and report back if there are any issues.
Comment 5 MarcP 2020-05-09 12:15:56 UTC
I did some quick tests today, and it seems to work as intended.

Once again, thanks!