Manage tags attached to images.
Tags provide a means of adding information to images using a keyword dictionary. You can also manage tags as a hierarchical tree, which can be useful when their number becomes large. Only tags at the leaves of the tree add information to an image – parent tags simply serve as categories and are are used to organise the leaf tags. For example, in the “color|white” tag, “color” is a category for the “white” tag.
The tagging module consists of two sections
The upper attached tags section (with the attach/detatch buttons under it)
The lower tag dictonary section (with the new/import…/export… buttons under it)
🔗attached tags section
The attached tags section displays tag(s) attached to image(s) that are
currently selected (if the mouse cursor is not hovering over an image on the lighttable); or
under the cursor (if hovering over an image in the lighttable view)
At the bottom of the attached tags section are the following buttons, from left to right:
- If a tag is selected in the tag dictionary section, attach this tag to the selected images.
- If a tag is selected in the attached tags list, detach that tag from the selected images. A tag can also be detached if you right click on the tag name and select detach from the pop-up menu.
- check mark [✓]
- Choose whether to view any hidden tags that darktable has automatically attached to the selected images.
- sort [⥯]
- Choose whether to sort the attached tags list alphabetically or by the count shown in brackets next to the tag (this count indiates how many of the selected images have that tag attached to them).
- minus [–]
- Choose whether or not to show the parent categories of the tag.
You can adjust the height of the attached tags window by holding Ctrl and scrolling with your mouse wheel.
🔗tag dictionary section
The tag dictionary section displays all of the tags that are available in darktable’s database. At the top of the tag dictionary section is a text box where tag names can be entered. Below this is a list of available tags, which may also include indicator symbols to the left of the tag names. The meanings of these symbols are:
a check mark [✓] indicates that the tag is attached to all of the selected images
a minus sign [–] indicates that the tag is attached to at least one of the selected images. If the symbol is next to a category name in the hierarchical tree view, it means that one of the child tags under that category is attached to at least one of the selected images.
if no indicator symbol is present, this means that the tag is not attached to any of the selected images, or that the category has no child tags attached to any of the selected images.
In the hierarchical tree view, a name in italics represents a category, and not a child tag. Note that categories are just used to organise the tags, and that a category cannot be directly attached to an image or exported.
Below the tag dictionary list are the following buttons, from left to right:
- Create a new tag, using the name that has been entered into the text entry box at the top of the tag dictionary section.
- Import tags from a Lightroom keyword file.
- Export all tags to a Lightroom keyword file.
- plus sign [+] toggle
- Show a list of tags that have been attached to some of the selected images but not to all of them. This can be useful to help you decide whether you want to apply any of those tags to the rest of the selected images.
- list/tree [☷]
- Toggle the display of tags between a straight list view and a hierarchical tree view.
You can adjust the height of the tag dictionary window by holding Ctrl while scrolling with your mouse wheel.
The following sections describe the operations that can be performed with tags.
The text entry box (shown under the attach/detach buttons) has multiple purposes.
If the tag dictionary list is in list view mode (rather than tree view mode), then typing the first few characters of a tag will bring up a list of suggestions. You can then scroll down with the arrow keys and press Enter to select one of the suggestions. Pressing Enter a second time will attach it to the selected images. You can also edit the name of the tag before pressing Enter – in this case the tag will be created if it doesn’t already exist in the database.
Aside from the auto-completion suggestions, typing some partial text into the text entry box allows you filters the set of tags shown in the tag dictionary window to those whose name or synonym matches the entered text. Press Enter to attach a tag with the entered name to the selected images. If that tag name does not yet exist in the database, it will be created before being attached.
The pop-up menu entry “copy to entry” can be used to copy a selected tag to the text entry box. You can then edit this name and press Enter to create a new tag with that name, making it easy to create multiple tags with similar names.
Note: If you find the auto-completion behaviour annoying, it can be disabled in preferences > miscellaneous > disable the entry completion.
There are several ways to create a new tag:
Import a text file. You can import one or more text files in the Lightroom tagging file format. You can also export your tags, add information to the exported file, then re-import it. The import function updates existing tags and creates new tags as required. If you change the name of a tag in the import file, it will be treated as a new tag.
Import already-tagged images. This method does not offer any flexibility to change tag names or categories during the import process.
Use the “create tag” sub-menu. A tag can be created manually, under an existing one (hierarchical) or at the root level.
Type into the text box and press the “new” button. Hierarchical tags are created using the pipe symbol “|”. Note that the entered tag is also attached to any selected images.
A number of tags are also generated automatically by dartable (e.g. “darktable|exported” or “darktable|styles|your style”). These help keep track of what actions may have been undertaken on those images. For example, these automatic tags allow you to identify which images have previously been exported, or which images have had styles applied.
The tag dictionary can be mainained via the “edit tag…” and “rename path…” items in the right-click pop-up menu.
The “edit tag…” operation allows you to change the name of a tag, though you cannot change which category it belongs to (you cannot use the pipe “|” symbol in the tag name field). The command is aborted if you try to enter a tag name that already exists. You can set the private and category flags and define synonyms for the tag (see below). These attributes are recorded in the
XMP-dc Subject and
XMP-lr Hierarchical Subject metadata entries, respectively. You can control which tags are included in exports by changing settings in the export selected module.
A tag set as “private” is, by default, not exported.
A tag set as “category” is not exported in
XMP-dc Subject. However it is exported in
XMP-lr Hierarchical Subjectas this XMP metadata holds the organization of your tags.
“synonyms” enrich the tag information and are mainly used to assist search engines. For example “juvenile”, “kid” or “youth” can be set as synonyms of “child”. Synonyms can also be used to translate tag names to other languages.
The “rename path…” operation is only available in the tree view mode, and it shows the number of tagged images which would be impacted by a change to the name of this tag or category. The rename path window lets the user change the full path of tag, including the catagories to which it belongs (categories can be specified using the pipe “|” symbol). This operation is powerful, but please take care as it can have a significant impact on the metadata of your images. The operation is aborted if the requested change causes a conflict with an existing tag.
There are a number of ways to attach an existing tag to a group of selected images:
- click on a tag in the tag dictionary window to select it, then click on the attach button.
- right-click on a tag in the tag dictionary window which will bring up a pop-up menu, then select the “attach tag” menu item.
- double-click on a tag in the tag dictionary window.
- right-click on a tag shown in the attached tags view to show a pop-up menu. If some of the selected images do not currently have that tag, the “attach tag to all” menu item will attach that tag to all the selected images.
- Type into the text box and press the “new” button or Enter. This will create the tag if it doesn’t already exist, and attach it to the selected images.
- Press Ctrl+T to open a small text box at the bottom of the central view of the lighttable. Type in the name of a tag and press Enter. The tag will be created if it doesn’t exist, and the tag will be attached to all the selected images.
When hovering over the images in the ligthtable you can check which tags are attached to the image, either by looking at the attached tags window in the tagging module, or in the tags attribute in the image information module.
There are several ways to remove a tag from a group of selected images:
- click on a tag in the attached tag window of the tagging module to select the tag, then click on the detach button.
- double-click on a tag in the attached tag window.
- right-click on a tag in the attached tag window, to show a pop-up menu, and select “detach”.
It is possible to completely remove a tag from all images (whether selected or not) and delete the tag from the database. Because this could impact a large number of images, a warning will be displayed indicating how many images currently have this tag attached. Take this warning seriously as there is no way to undo this action (except by restoring your database and/or XMP sidecar files from a backup). A tag in tag dictionary window can be deleted in the following ways:
- right-click on a tag in the tag dictionary window, to show a pop-up menu, and choose “delete tag”.
- right-click on a tag or category in the tag dictionary window, to show a pop-up menu, and choose “delete path” to delete the tag or category, together with any child tags or categories.
🔗import / export
The “import” button allows you to choose a text file (which must comply with the Lightroom tag text file format) and import its content. If a tag in the imported file already exists, its properties will be updated, otherwise a new tag will be created.
The “export” button exports your entire tag dictionary into a text file of your choice (Lightroom tag text file format).
To see the images bearing a particular tag in the tag dictionary window, right-click on the tag name and choose “go to tag collection” in the resulting pop-up menu. This opens a collection in the collect images module showing all images containing this tag. You can also select other tags in the collect images module by double-clicking on the collection for the other tag.
To return to the collection that was selected before opening a tag collection select the “go back to work” item from the pop-up menu. This will allow you to return to the original collection, as long ans you haven’t selected any other collections in the meantime.