Create Inverted Lightness Mask in GIMP

Applying an inverted lightness layer mask in GIMP allows you to isolate and adjust the darker tones and shadows of an image without permanently altering the underlying pixels. This guide demonstrates how to extract the precise lightness data from an image, attach it as a dedicated layer mask to a duplicated layer or adjustment layer, and invert it for completely non-destructive tonal control.

Step 1: Duplicate the Base Layer

To ensure your workflow remains non-destructive, preserve your original image:

  1. Open your image in GIMP.
  2. In the Layers dialog (Ctrl + L), right-click your base image layer.
  3. Select Duplicate Layer (or press Shift + Ctrl + D).
  4. Rename this new layer to something descriptive, such as "Shadow Adjustments."

Step 2: Extract the Lightness Component

GIMP allows you to extract specific color model channels, including the Lab* or HSL Lightness channel:

  1. Select the duplicated layer.
  2. Go to the top menu and select Colors > Components > Extract Component....
  3. In the dialog, set the Component dropdown to LAB Lightness (or HSL Lightness depending on your preferred color model).
  4. Click OK. GIMP will convert this layer into a pure grayscale representation of lightness values.
  5. Press Ctrl + A to select the entire canvas, then press Ctrl + C to copy this lightness data to your clipboard.
  6. Press Ctrl + Z to undo the "Extract Component" action, returning your duplicated layer back to its full-color state.

Step 3: Apply the Layer Mask

Now attach the copied lightness data to the layer as a mask:

  1. Right-click the duplicated layer in the Layers dialog and select Add Layer Mask....
  2. Choose White (full opacity) and click Add.
  3. With the layer mask selected (indicated by a white outline around the mask thumbnail), press Ctrl + V to paste the lightness channel data into the mask.
  4. The pasted data will appear as a Floating Selection (Pasted Layer) in the Layers panel.
  5. Click the green anchor icon at the bottom of the Layers panel (or press Ctrl + H) to anchor the floating data directly into the layer mask.

Step 4: Invert the Mask

To target the shadows rather than the highlights, invert the lightness values:

  1. Ensure the layer mask thumbnail is active by clicking on it.
  2. Go to the top menu and select Colors > Invert.

The white areas of the mask now correspond to the darkest areas of the original image, while the highlights are masked out in black. Any adjustments applied to this layer—such as curves, exposure changes, or color grading—will affect only the shadow regions, leaving the original layer beneath untouched.