Watch the full tutorial
This Darktable Basics episode answers a question I saw on Reddit: what is a tone mapper, and do I need one?
If you come from Lightroom, you’ve probably never heard the term. That’s normal: Lightroom does tone mapping for you, without telling you. It speeds up your workflow, but it also takes the decision away from you. Darktable shows you this step and lets you choose.
You’ve probably read the names AgX, Filmic and Sigmoid. These are Darktable’s three tone mappers. Let’s see what a tone mapper does, why you need one, and which one to pick.
The theory in one picture
Imagine your raw file as a line of tones, from the darkest on the left to the brightest on the right, just like the histogram.
Somewhere on that line is a limit: the white of your screen. Your camera captures more than your screen can display or your printer can print. So some of the brightest tones sit beyond that limit.
There are two ways to handle them:
- Without a tone mapper, everything beyond the limit is pushed to pure white. Three different bright tones become one. That’s clipping: you lose detail and get flat white blobs in the highlights.
- With a tone mapper, those tones are compressed to fit within the display range, keeping their differences. You keep the nuances in the highlights. That’s the whole idea: clip and lose information, or compress and keep it.
What it looks like in Darktable
On my example image, with no tone mapper active, look at the histogram first: the right side is packed against the edge. Normally you’d see a gentle fall-off, like on the dark side. Here everything is crammed at the far right.
You can see it in the image too. The sky shows an intense, fake-looking blue: Darktable is simply clipping the channels.
Turn on the clipping indicator and the clipped areas show up in red. The top of the sky is clipped, but also something easy to miss at first: the flags. They have writing on them, and without tone mapping, that detail is lost.
Now switch on AgX:
- The red clipping warnings disappear: the highlights are no longer clipped.
- The sky is still blue, but a softer, more believable blue.
- The histogram now shows a smooth fall-off before the right edge. The image doesn’t change drastically, but all the data is kept. You also get a bit more contrast and depth, for example in the mountains.
AgX, Filmic or Sigmoid?
- AgX is the newest. It comes from the world of Blender rendering and aims for a film-like roll-off of the highlights. Its creator, Troy Sobotka, would actually tell you it’s far more than “just a tone mapper”: read my interview with him.
- Filmic is the long-standing option. It gives you a lot of control, a bit like AgX.
- Sigmoid is simpler, with fewer controls, which can make it less intimidating at first. If you’ve never used a tone mapper, start with AgX. It’s the most advanced, and it’s the one people are talking about right now, so you’ll find plenty of resources, including my own AgX video.
One tone mapper at a time
This is very important: never use two tone mappers at once. At best the result looks off; at worst it’s really bad. And Darktable may not warn you.
Try all three, but on a given image, only activate one. If you want to test Sigmoid, switch AgX off first.
Key takeaways
- A tone mapper also works on the dark side, but that’s not where it helps most. It mainly saves your highlights and their detail.
- Set your exposure and the other basic modules before the tone mapper.
- In Lightroom this step is hidden. In Darktable, the choice is yours. If you’d like a specific topic covered in the Darktable Basics series, leave a comment on the video. And for Darktable news every two weeks, join my newsletter.