darktable icon indicating copy to clipboard operation
darktable copied to clipboard

Tagging: unassigned partially matched tags will be written to export

Open grubernd opened this issue 5 years ago • 4 comments

Describe the bug/issue

Any tag that partially matches an assigned tag from the beginning will be also written to the exported files.

In crude regex: ^.*

To Reproduce

  1. Have a tag in your collection, does not need to be used in the current library. e.g. tree
  2. Assign an extended variant of that tag to an image, e.g. tree-hugger
  3. Do NOT assign tree to that image
  4. Export
  5. Check metadata: both tree-hugger (as expected) and tree (not expected) will be there

Further notes

The export will respect the rules associated with private tags.

Tags set as category will not be exported.

With a large enough tag collection this can lead to some very unexpected tag exports. For example any short number like 1 will be exported together with anything that also starts with 1, wether it is 10 or 1world. Same goes for short words, compound words and so on.

Platform

  • darktable version : 3.6.0 on BunsenLabs Lithium (debian 10)

grubernd avatar Sep 06 '21 20:09 grubernd

I'll at this. Thanks for reporting.

phweyland avatar Sep 06 '21 21:09 phweyland

The export will respect the rules associated with private tags. Tags set as category will not be exported.

Have you found any issue related to those ?

phweyland avatar Sep 08 '21 14:09 phweyland

private tags categories

Have you found any issue related to those ?

No.

But I found that the matching goes across the full hierarchy if that wasn't clear from the initial report. So tree|birch will trigger an export of tree even if "omit hierarchy" is set to on. Of course only if tree is present as a separate tag in the collection.

grubernd avatar Sep 08 '21 17:09 grubernd

Yes, omit hierarchy is a very old setting which could be removed now, but I've avoided to change the old logic. His purpose is to avoid to export the elements of the path if they are not themselves a tag. With the new logic you set those elements as category to prevent to export them.

phweyland avatar Sep 08 '21 17:09 phweyland