Watch the full tutorial

This Darktable Basics episode starts from a simple question: if your Darktable database died tonight, what would you lose? And how do you protect yourself?

Two boxes, not one catalog

If you come from Lightroom, you think in catalogs. In Darktable, your work lives in two places:

  1. The database. Darktable’s library stores everything you do, together with your presets and styles.
  2. XMP sidecars. Darktable also writes your edits to a small .xmp file next to each raw file. It holds your history stack, ratings, tags and colour labels.

That second box is the key to this whole video. Let’s look at both in the lighttable: collections, tags, then sidecars.

Collections

Collections are on the left of the lighttable. I won’t cover import here (I have a separate video on it). I’ll assume you use add to library, which means you decide where your files live and how your folders are organised, not Darktable. That’s my approach, not the only one.

For the demo, I have a “demo” folder with one subfolder per topic, for example the Black Pro-Mist images.

Film roll and folder

The two main ways to browse are:

  • Film roll: what you imported, as Darktable sees it, like a roll of film.
  • Folder: the physical folders on your computer.

They’re more or less the same thing, seen from two sides.

Smart filters

If you come from Lightroom, you know smart collections. Darktable does the same with collection filters in the lighttable. These aren’t physical folders, just saved searches across your library.

You can filter by rating or colour label, and add many more rules. For example, filter by ISO to find your high-ISO shots when you want to test the AI denoise.

Darktable also has predefined collections, such as by camera or by ISO. Double-click one to see the matching images.

Tags

Tags are on the right of the lighttable. A fresh install has none: you create your own. I brought mine over from previous software with a tag file I’ve been refining for a few years. If you’d like me to share it, leave a comment.

Tags describe your images so you can find them faster later. They’re written to the XMP file, so they travel with the image.

Hierarchies

Tags can have branches, a hierarchy. For example, a top-level tag “light” with types of light under it. Select your images, double-click “light | night”, and they’re tagged. Later, filter on “night” to see only your night shots.

You can also tag outside Darktable, which I actually prefer, and I’m experimenting with AI tagging. It’s not good enough yet for me to recommend, but I’ll share it when it is.

Private and category tags

This one matters to me. By default, tags are exported with your images, which is useful. But some tags are just for you, like workflow tags (“fully edited”, “tutorial material”).

Right-click the tag, choose edit, and in the pop-up:

  • Tick private and the tag won’t be exported.
  • Tick category and the parent tag won’t be exported, only its children. For example, “technique” stays private, but the specific technique under it is exported.

Sidecars

To see the XMP files, you have to look outside Darktable, in your file browser.

Next to the raw file, I have three XMP files. Remember the Pro-Mist video: I made three duplicates for the 1/4, 1/2 and 1/8 versions. Each duplicate is just a new XMP file holding that edit’s full history.

Look at the sizes: the raw file is about 33 MB, while each XMP is tiny. It only stores the edit, not the image data. So you can make as many duplicates as you want without filling your hard drive.

The test: a brand new Darktable

Now the real test. I open a completely fresh Darktable: no collections, nothing.

I click add to library and select the Pro-Mist folder. Only the raw file is visible, not the XMP files. But once imported, Darktable brings back everything:

  • the edits, already grouped as versions 1, 2 and 3
  • the tags
  • and it would bring back ratings and colour labels too

What’s not in the XMP files is what lives only in the database: your styles and presets.

A simple backup strategy

  1. Back up your photos together with their XMP files. That covers all your edits, tags and ratings.
  2. Export your styles and presets as files, and keep them somewhere safe. You can import them back at any time. That’s exactly how I share my presets and styles with you.

With that, even if you lose Darktable, lose your computer, or come back in two years with a new version, you can bring everything back easily.

Wrapping up

I’m thinking about a more detailed video on XMP files. If you’d find it useful, tell me in the comments on the video.

Want more Darktable basics? The full series is in the Darktable Basics playlist.