darktable's own tag's - where can I find more info?

Darktable applies it’s own tag’s like ‘changed’, ‘no-samples’ etc. Both in the manual and on this forum I could not find - maybe did not find the proper search - more info about which tag’s are applied and when. Where can I find some extra information?

Besides that I notice darktable’s tag’s in a hierarchy under ‘collections’ > ‘tag’ in the left panel of the lighttable On the right I may choose to show or not show the tags in the upper ‘tagging’ space. But I do not see these tags in the lower ‘hierarchy’ tree. Is that normal behaviour?

I ask this as I have a couple of tags that seemingly ‘broke’ the regular structure - see the screen grab below (first time using GIMP :innocent:). Presumably I have in a couple of .xmp files both dc:subject and lr:hierarchicalSubject filled giving me this when importing in darktable. I unfortunately cannot be sure which software did this, how and when. Might very well be my ignorance / lack of knowledge.

Kind regards, Jetze

Ubuntu 24.04 // darktable 5.3.0+169~g06f0b0b576

I think the only place is in the code.

2 Likes

I think so: those tags are appied by darktable under specific conditions. If users can apply them as well, you can no londer be sure that the presence of a tag means the condition was fulfilled (when the tag was applied, at least). That would make the tags less valuable.

That said, some of those tags may not be all that useful for normal users. But as they don’t influence normal use, I find that a non-issue (and they may come in handy for some debugging situations, or when you want to replace some modules with newer ones).

3 Likes

…mmmmmmmmm, hope there is a bit more to it…

Agreed - makes sense!

I will cleanup al the ‘uncategorized’ tags. And make sure I will not import anything with tags in it - before checking it out carefully.

1 Like

Where else you hope that information be?

1 Like

@Jetze Some time ago I had imported a batch of about 20 JPG photos that over the years would show up every time I searched for DNG photos in darktable. I could not figure it out and just ignored that batch when I searched for DNGs. A few months ago I decided to get to the bottom of it and discovered that at some point in time dt had tagged the JPG photos with the dt tag for DNG as well as for JPG. But within dt itself I could not remove the offending DNG tag. So I opened the XMP file for one of the images where there was this section:

   <dc:subject>
    <rdf:Bag>
     <rdf:li>2019</rdf:li>
     <rdf:li>Greys River</rdf:li>
     <rdf:li>JPG</rdf:li>
     <rdf:li>Samsung</rdf:li>
     <rdf:li>Wyoming</rdf:li>
     <rdf:li>darktable</rdf:li>
     <rdf:li>dng</rdf:li>
     <rdf:li>format</rdf:li>
     <rdf:li>issue</rdf:li>
     <rdf:li>no-samples</rdf:li>
    </rdf:Bag>
   </dc:subject>
   <lr:hierarchicalSubject>
    <rdf:Bag>
     <rdf:li>2019</rdf:li>
     <rdf:li>Greys River</rdf:li>
     <rdf:li>JPG|Samsung</rdf:li>
     <rdf:li>Wyoming</rdf:li>
     <rdf:li>darktable|format|dng</rdf:li>
     <rdf:li>darktable|issue|no-samples</rdf:li>
    </rdf:Bag>
   </lr:hierarchicalSubject>

The photos in question had both DNG and JPG info. In a batch edit of the folder of offending tags I deleted the incorrect references to DNG and changed the tag ‘darktable|format|dng’ to ‘darktable|format|jpg’. Upon reopening dt, I immediately updated that folder’s images from the newly saved XMP files.

I’m not saying you should do this, but that is how I solved my problem.

2 Likes

OK I surrender… I just hoped someone would know or have a list of keywords.

But then again, if I want to check the coding, where to look and how to find the proper piece of software. I’m still quite new to FOSS.

Kind regards, Jetze

And I do realize that - as we say in dutch - “one madman may ask more questions then 100 wise-men may ever answer…” And that a few knowing people out there try to support a lot of darktable users. For which I’m very grateful!

1 Like

The code is freely available in darktable GitHub. dt uses c programing language. You can try using the GitHub web search feature to search for the tag name. VS code might be a better search functionality.

2 Likes

Will do so, thanks!

Thanks for sharing this experience! I will keep an eye on the involved files. Marked them with a keyword. When needed will use exiftool or exiv2 to see what I can do.

imageio/imageio.c:    dt_tag_detach_by_string("darktable|mode|monochrome", id, FALSE, FALSE);
control/jobs/control_jobs.c:  dt_tag_new("darktable|local-copy", &tagid);
control/jobs/control_jobs.c:  dt_tag_new("darktable|changed", &tagid);
control/jobs/control_jobs.c:  dt_tag_new("darktable|exported", &etagid);
develop/develop.c:  dt_tag_new("darktable|changed", &tagid);
common/image.c:    if(dt_tag_detach_by_string("darktable|changed", newid, FALSE, FALSE)
common/image.c:       || dt_tag_detach_by_string("darktable|exported", newid, FALSE, FALSE))
common/history.c:  dt_tag_detach_by_string("darktable|style|%", imgid, FALSE, FALSE);
common/history.c:  dt_tag_detach_by_string("darktable|changed", imgid, FALSE, FALSE);
common/history.c:  dt_tag_new("darktable|changed", &tagid);
common/tags.c:     ignore_dt_tags ? " AND tagid NOT IN memory.darktable_tags" : "");
common/tags.c:       images, ignore_dt_tags ? " AND T.id NOT IN memory.darktable_tags" : "");
common/styles.c:    if(dt_tag_new("darktable|changed", &tagid))

There are also some darktable tags created and used by the lua-scripts, but again they are for use by the code and not the user.

1 Like