Getting Around in GIMP - Blue Channel Check Layer (Retouching)

In my previous post for the Open Source Portrait (Postprocessing), I had mentioned during the skin retouching in GIMP section that there was a method that I had used in the past for helping to make skin imperfections visible for healing.

The rest of my GIMP tutorials can be found here: 
Getting Around in GIMP

It is a similar method described by Calvin Hollywood (again), that he calls "Check Layers". He explains what they are and how he uses them in the video below:


If you don't want to watch the video, the basic idea came about from my experience when converting images to B&W. That is, the Blue channel of a color image is not flattering at all for skin (unless you have flawless skin). Conversely, the Red channel usually has very pretty skin tones (and hence it's common to overlay a Red channel on your image and set it to Overlay blend mode to enhance this).

What Calvin Hollywood shows in his video is using a Photoshop adjustment layer to turn the image into grayscale, and to turn down the contribution from the Red channel, while increasing the Blue channel. This results in a more contrasty image that favors the blue channels, and will make skin imperfections much more visible.

The problem is that we don't have adjustment layers in GIMP...

The Solution

Well, I had to play around a bit to get things working, but I finally got there.

The trick was to remember that I wanted a view of the Blue channel, in monochrome, and in a way that any touchups I did to the base image would be instantly reflected in my grayscale Blue channel view.

Here's how to do it (manually, I have also written a script-fu you can download to do this automatically - see below):

  1. Start with your base layer (or a duplicate).
  2. Add a new layer over it, fill it with pure Red (255,0,0), layer mode set to Subtract.
  3. Add another new layer, fill it with pure Green (0,255,0), layer mode set to Subtract.
  4. Add a new layer over it, fill it with pure Yellow (255,255,0), set layer mode to Subtract.
  5. Reader Sebastian pointed out in the comments the (now) obvious fact that Yellow is the complement of blue, so this saves having to make 2 layers of red and green - we can just subtract the complement of blue: Yellow.
  6. Add another new layer, fill it with White (255,255,255), layer mode set to Color.
  7. Add another new layer, fill it with Grey (127,127,127), layer mode set to Dodge.
  8. Now work with your healing brush on your base layer, and changes will show in realtime.

When I'm done adding layers, this is what my layer palette would look like:


After adding all my layers

I can now work with a healing/clone brush on my base layer, and I'll see the changes reflected in real time on my canvas in GIMP.

If I want to see the progress of my work on the full color image, I can use a simple shortcut: Shift-Click (⌘-Click) on the base layer visibility to isolate it as the only visible layer, and again to turn all layers back on.

Here is a quick video of me walking through using this method:


A nice bonus to this method is that it will also work above a set of Wavelet Decompose scales, meaning you can use a normal wavelet workflow, and still use this "Check Layer" to get a view of what you're doing against the Blue channel.

Finally, it can be tedious to create all of these layers manually each time you want to use it, so I've written a Script-Fu to automate it. You can find it at registry.gimp.org:

Download the Script-Fu from the GIMP Registry

4 comments:

  1. Hi Patrick,
    to simplify this, instead of creating a layer that has only red and another that has only green in it, you could create a single layer that has green *and* red in it, i.e. yellow, the complementary colour of blue. I checked the results with layer mode difference, and as expected there was none.

    I love your Gimp tutorials. And thanks for recommending the strobist blog in your open source portait blogpost. Now I feel the urge to buy a couple of speedlights.

    Cheers,
    Sebastian

    ReplyDelete
    Replies
    1. Well crap. You're completely correct. Thank you for realizing this and pointing it out! I'll update the post to reflect this.

      (Seriously, that revelation is a DUH moment for me... :) )

      Delete
  2. Very nice! I'm glad I ran across your work, it's difficult to find good Gimp tutorials that aren't left over from 2007.

    ReplyDelete