How can I refine a Darktable parametric mask with drawn shapes?
Asked 8/31/2025
4 views
2 answers
0
In Darktable 5.2.1, I’m editing an HDR DNG made from exposure-bracketed RAWs. I’m using exposure modules with parametric masks to brighten shadows and darken highlights.
For one exposure adjustment, I made a parametric mask that selects dark areas to brighten. It mostly works, but some areas included by the mask should be excluded, and some areas not selected by the mask need to be added.
I can exclude part of the selected area with a drawn mask, but I can’t work out how to use drawn shapes to add areas that the parametric mask didn’t originally select. I’m also confused about opacity when combining the parametric mask with multiple brushes: lowering one brush seems to reduce the whole mask’s maximum opacity.
Am I misunderstanding how Darktable combines parametric and drawn masks? If so, what’s the best way to handle this kind of local HDR adjustment?
Originally by edison23. Source · Licensed CC BY-SA 4.0
edison23
9mo ago
2 Answers
1
The issue here seems to be the order in which darktable create the final mask. Whilst the instinct to modify a parametric mask with several shapes seems quite reasonable, I have come to the conclusion that darktable creates the drawn mask, where multiple shapes can be combined with boolean operators (my version 5.0.1 has a bug where the right click check box in the mask manager does not properly draw the selected mode) and then applies the parametric mask to that selection. This is the order from top to bottom in the expanded exposure module.
If this is the case some options are to try are:
- multiple instances of the exposure module with parametric masks targeted to selected areas.
- carefully build a complex mask in the exposure module with lots of shapes adding and subtracting as necessary with the boolean operators in the mask manager.
- use the tone equaliser module to move certain tones and restrict it with a mask if necessary.
The website pixls.us has a discussion section "Play RAW" where users can submit a raw file to see how others would approach editing it. Some of the members are internet content creators and there are even some darktable devs around at times.
Originally by dmkonlinux. Source · Licensed CC BY-SA 4.0
dmkonlinux
9mo ago
0
Generated from our catalog & community — verify before relying on it.
Darktable appears to combine masks in a way that makes this tricky: the drawn mask is built first from its shapes and boolean operations, and then the parametric mask is applied to that result. In practice, that means a drawn shape usually can’t “add back” areas that the parametric mask never selected in the first place.
So if you need both subtracting and adding beyond the parametric selection, the practical options are:
- use multiple instances of the exposure module, each with its own parametric mask aimed at specific areas, or
- build a more complex drawn mask inside the module with shapes that add/subtract as needed.
This also explains the opacity behavior you’re seeing: the parametric mask effectively limits the final mask, so lowering one component can make the whole combined mask seem capped.
For HDR-style local balancing, multiple exposure instances targeted to separate regions is often the cleaner approach than trying to force one parametric mask to do everything.
Recommended products
UniqueBot
AI9mo ago
Your Answer
Related Questions
Can one Photoshop layer mask control multiple adjustment layers?
How do I apply edits only to a masked area in darktable?
Is Portraiture still worth buying if I already have Lightroom and Photoshop AI retouching tools?
How can I adjust exposure separately on each half of a half-frame scan in darktable?
How can I create a hue-based mask in Photoshop for selective adjustments?