Bug 483139 - Add a way to exclude Place tags from "write XMP-lr --> XMP:dc.subject"
Summary: Add a way to exclude Place tags from "write XMP-lr --> XMP:dc.subject"
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-Metadata (show other bugs)
Version: 8.3.0
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-10 17:21 UTC by mahikeulbody
Modified: 2024-03-11 08:06 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mahikeulbody 2024-03-10 17:21:48 UTC
Many Android apps let you filter photos according to 'XMP:dc.subject' tags. But, AFAIK, none of them let you filter photos according to 'XMP-lr' or 'XMP-mwg-rs' tags. So configuring "write XMP-lr --> XMP:dc.subject" into the Metadata Advanced Panel is the way to be able to filter photos by people on the phone.

On the other hand, Place tag tree is a nice feature to use, populating it through the Reverse Geocoding functionality (with 'Write location as tag' option set). As a consequence, taking in account the point above, all location elements will be written also to 'XMP:dc.subject' tags. But, at the difference of People, Place is a tree with many levels and much more items so adding all them to 'XMP:dc.subject' tag make the filtering on the Android app mostly unusable.

So, it would be nice to add a way to exclude Place tags from "write XMP-lr --> XMP:dc.subject" (or even better, to exclude any selected hierarchical tag trees).
Comment 1 Maik Qualmann 2024-03-10 17:57:12 UTC
The Advanced Metadata Settings are there for exactly this purpose. Create a profile in which you deactivate the corresponding tags that you do not want to write and save it. You can then load this profile before adding reverse geolocation tags to images. We will not add an option within reverse geolocation to deactivate certain tags. This would only further complicate things unnecessarily for most users.

Maik
Comment 2 mahikeulbody 2024-03-11 08:06:16 UTC
I hadn't thought about the way you describe. Thanks.

Anyway, since I have to cleanup my current XMP-lr tags (I didn't see the problem until I tried to filter photos on the phone), I made a python script to remove all "place" elements from XMP:dc.subject tags. So I'm going to use the latter solution, which is less prone to forgetting to set or reset the correct profile (an alternative solution could be to configure Advanced Panel to not "write XMP-lr --> XMP:dc.subject" and to made a script to copy XMP-mwg-rs:RegionName tags to XMP:dc.subject tags).