module proposal: gamut compression

Here is an example. Try processing it with the current tools of darktable:

I’ve added +2 EV in exposure. HQ mode in the darkroom, otherwise darktable clips out-of-gamut colours.

No tone mapper:

Filmic (v7 + auto tune exposure):

Sigmoid, smooth:

Sigmoid, sRGB:


(That’s not a built-in preset, I found it on pixls, so here are the params)

AgX (blender-like|base + auto tune exposure):

Gamut-compress + AgX (blender-like|base + auto tune exposure):

Same, but with increased blue attenuation in AgX:

Same, but the gamut compression turned off:

Gamut compression still off, further increasing blue attenuation:

The shadows are the best in this one, but it looks very flat now, and the walls look magenta-ish. A comparison with the less blue attenuation but gamut compression on:

So let’s try gamut compression and some blue attenuation (this has less blue attenuation dialled in than the ‘Gamut compression still off, further increasing blue attenuation’ version):

A quick comparison between max-out blue attenuation with gamut compression off, and somewhat lower blue attenuation with gamut compression on:

3 Likes