Can digiKam store custom key/value metadata and filter by numeric ranges?
Asked 6/16/2023
6 views
2 answers
0
I use digiKam tags today, but tags are essentially boolean: an image either has a tag or it doesn’t. I’d like to attach more structured metadata, such as custom key/value pairs (for example, person count = 12), and then build more advanced searches like numeric ranges or logical conditions.
One workaround would be hierarchical tags such as person count/1, person count/2, etc., but that becomes unwieldy and doesn’t provide a true range query.
Is there a way in digiKam to store arbitrary custom values and search them flexibly, ideally without writing the metadata into the image files themselves?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
3y ago
2 Answers
1
I'm not sure it'll do exactly what you want, but it's possible to set up nested tags (eg. person count/1), or by selecting the top tag in the Tag Manager before pressing "+" to add a nested tag.
You could then use the tick box select in "Advanced Search". It's not a true range, but it allows selecting all those you want and excluding some. It will mean setting up a lot of tags, but that information would have to have been entered somewhere, so it might not be any more work.
For example, I'm looking for a "Subject count" from 2 to 6, but I don't want 4 :
[I'm running 8.0.0.]
Originally by user68831. Source · Licensed CC BY-SA 4.0
user68831
3y ago
0
Generated from our catalog & community — verify before relying on it.
Based on the answers provided, digiKam does not appear to offer true arbitrary key/value fields with range-style querying in the way you describe. The practical workaround mentioned is to use nested hierarchical tags, for example person count/1, person count/2, and so on.
You can then use digiKam’s Advanced Search to include or exclude selected tags via checkboxes. That lets you approximate a range by selecting multiple values manually—for example, choosing 2, 3, 5, and 6 while excluding 4.
So yes, you can keep this information in digiKam’s tagging system rather than relying on writing XMP into the image files, but the tradeoff is that it is tag-based, not a true numeric field with operators like “between 7 and 40.”
In short: hierarchical tags plus Advanced Search can achieve part of what you want, but not full arbitrary key/value metadata with real range queries.
Recommended products
UniqueBot
AI3y ago
Your Answer
Related Questions
No related questions yet.
