How to "swap" colors in darktable?

When I see many stunning processing result (for example Before & After: How One Popular Photographer Edits His Photos | PetaPixel with before and after comparison) I always noticed the original picture’s colors are “swapped”, e.g sky color from very light blue to orange??

What module should I use in darktable to achieve similar result? And what techniques are involved?

Just guessing… tone mapping maybe?

Give a try:

1 Like

I would say, for the orange sky, a gradient mask or tone curve with parametric mask, or color zones with parametric mask.

Wow, great! I have checked the first tutorial, it looks like the main works is around channel mixer. Now I have 2 questions here

  • How to understand how channel mixer works? It seems that the author just fiddled colors in red channel. But I don’t quite get what R/G/B mean inside a color channel? Doesn’t a color channel only has 1 single color?
  • How does blend mode impacts the color?

Swapping to me means replacing red with green, for instance, and from what I see, no colors were swapped. What I do see plenty of is changing the hue according to the luminance, e.g. making dark tones in the clouds more blue and light areas where the sun breaks through more fiery (see the photo of Manarola), and then overlaying a graduated hue mask on top of that (clearly visible in both the photos of Xingping village and the cormoran fisherman).

Care to explain a little further how to “change the hue according to the luminance” in darktable?

I do care, but I’m not the right person to answer that.

https://www.darktable.org/usermanual/en/color_group.html#color_zones would be a first start.

Hi hardywang,

the channel mixer in darktable can be used to build up one destination-channel out of the color-information of the R, G or B channel of the picture.

A bit confusing is the fact, that the destination channel can not only be R, G or B, but also saturation, hue, lightness or greyscale.

Not an easy to use tool in my opinion, because it is sometimes difficult to estimate the information in the source-channels.

An easy way to understand what´s going on is, if you set destination to greyscale and then R, G or B separately to 1.0, take a snapshot of each and compare them.

Greets
Jürgen

A post was split to a new topic: Pictures changing color on export

Channel Mixer has presets for a direct swap … also try extreme positions with Color Contrast

1 Like