Bug 420661 - Wishlist: option to clear/delete specific date field in a picture selection
Summary: Wishlist: option to clear/delete specific date field in a picture selection
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-TimeAdjust (show other bugs)
Version: 7.0.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-27 12:10 UTC by MarcP
Modified: 2020-05-09 12:15 UTC (History)
2 users (show)

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


Attachments
Remove timestamp proposal (85.50 KB, image/png)
2020-04-27 12:10 UTC, MarcP
Details
BQM Remove metadata (139.23 KB, image/png)
2020-04-28 12:43 UTC, MarcP
Details

Note You need to log in before you can comment on or make changes to this bug.
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!