Hello,
The libre-dt-lab Base Curve module has received a major overhaul on several fronts: a new Jed Smith gamut management engine, an original cinematic rendering mode (mode 3), significant interface improvements, and better consistency across the three processing modes.
1. Gamut Management: Jed Smith Engine
The previous gamut compression worked on the maximum luminance channel with a fixed threshold per color space (sRGB/AdobeRGB/Rec.2020). It did not distinguish between channels and occasionally produced residual out-of-gamut colors flagged by darktable’s gamut check.
The new engine is an implementation of Jed Smith’s algorithm (gamut-compress, github.com/jedypod/gamut-compress).
It operates on the three complementary channels separately: Cyan (distance of red from the dominant channel), Magenta (distance of green), Yellow (distance of blue)
For each channel, compression follows a square-root curve that guarantees two mathematical properties: Below the threshold: no modification, Beyond the maximum limit: convergence toward the achromatic axis (full compression)
Each channel has two independent parameters:
-
Threshold cyan/magenta/yellow : the distance at which compression starts (as a fraction of the dominant channel)
-
Limit cyan/magenta/yellow : the maximum recoverable distance beyond the threshold
Magenta has a higher default limit (0.30) than cyan and yellow (0.20), consistent with Jed Smith’s original behavior, highly saturated greens, which generate complementary magenta, are statistically the most common in real-world images.
Purity Boost
A new Purity Boost slider complements the Jed Smith engine. After gamut compression reduces chroma, this slider re-expands colors toward the gamut boundary, without ever exceeding it, thanks to an automatic hue-preserving clamp. The effect is similar to a vibrance slider targeted at compressed areas.
2. Highlight Roll-off Slider
The roll-off toward white beyond 80% luminosity, which was previously hard-coded, is now an active slider for all three modes. At 0% it is disabled; at 100% it reproduces the original behavior.
3. Default Curve in Scene-Referred Mode
For scene-referred workflows, I have chosen the new Cinematic DRT curve as the default, inspired by Jed Smith’s OpenDRT. Since this is a subjective choice, it is now possible to select your preferred default curve in the module options.
4. Interface Improvements
Node position sliders hidden by default
The “node X position” and “node Y position” sliders are now hidden by default. An eye button in the overlay button bar above the graph lets you show or hide them with a single click, directly below the graph. This significantly declutters the interface for users who do not need them.
Collapsible gamut drawer
The gamut section (8 sliders) is accessible via a collapsible drawer at the bottom of the module.
Unfortunately, GitHub Actions isn’t working right now, so I’ve compiled an AppImage and a Windows ZIP file locally, which are available via this link
Edit: In the meantime, the GitHub servers are back up and running, and the latest version is available : GitHub
The configuration file for the Windows version is also included in the portable folder. I’ll try to update the user guide sometime this week.
Greetings from the Luberon, 
Christian