Control Local Tonal Changes in GIMP 2.10 with Layer Masks
Use GIMP layer masks to darken skies or brighten subjects without erasing pixels, plus how to verify the mask is working.
17 Jan 2026, 21:34 UTC

The problem: a tonal adjustment that affects the whole photo
You open a landscape photo in GIMP where the sky is blown out, but the foreground looks fine. You add a Curves adjustment to darken the sky, then realize the adjustment darkened the entire image. You could erase parts of the adjusted layer, but erased pixels are permanently removed. What you need is a way to limit the tonal change to one area while keeping every original pixel available for later edits.
The useful takeaway is that a GIMP layer mask is a grayscale opacity channel attached to a layer. Painting black on the mask hides that part of the layer; white reveals it; gray creates a partial blend. You can darken a duplicate layer, attach a mask, and paint the effect out of the foreground without touching the original image data.
How a layer mask controls visibility
A layer mask does not change image pixels directly. It stores a grayscale value for every pixel on the layer: black means fully transparent, white means fully opaque, and gray means partially transparent. GIMP composites the masked layer with the layers below using those values. Because the mask is a separate channel, you can edit it with any paint tool, selection, or filter, and you can turn it off to compare the adjusted and unadjusted states.
This is not an adjustment layer in the sense used by some other editors. Editing the mask modifies the mask channel, not the underlying photograph. The original layer pixels remain intact until you explicitly apply the mask, which bakes the transparency into the layer and cannot be reversed after closing the file unless you kept a duplicate.
Worked example: darken a sky locally
Assumptions: GIMP 2.10, using GEGL compositing in linear light. Confirm your version in Help > About before following menu-specific steps, because GIMP 3.0 may use different dialog names.
- Open your image and duplicate the layer you want to adjust. In GIMP 2.10, right-click the layer in the Layers panel and choose Duplicate Layer; verify the exact menu label in your installed version.
- On the duplicate layer, open Colors > Curves and drag the curve downward to darken the sky. The whole image darkens at this point.
- Right-click the duplicate layer and choose Add Layer Mask. Initialize the mask to White so the darkened layer remains fully visible.
- Set the foreground color to black. Click the mask thumbnail—the grayscale square beside the layer preview—to make the mask the active editing target.
- Paint over the foreground and any other areas where you do not want darkening. Black mask values hide the duplicate layer there, revealing the lighter layer below.
- For the horizon or other transition zones, switch to a gray brush or lower the brush opacity so the mask fades gradually instead of creating a hard edge.
- Click the layer preview thumbnail when you want to return to editing image pixels instead of the mask.
If the mask is working, the areas you painted black should match the original brightness of the layer below, while the sky remains darkened. The mask thumbnail should show black where you painted and white elsewhere.
Verify the result before applying the mask
- Inspect the mask thumbnail: black areas correspond to hidden parts of the duplicate layer.
- Right-click the mask thumbnail and toggle the mask visibility. The localized darkening should disappear and reappear.
- Toggle the duplicate layer's visibility to compare the adjusted image against the original.
Do not apply the mask until you are satisfied. Applying a layer mask permanently merges the transparency into the layer's pixels.
Trade-offs and limitations
- Layer masks increase memory use. On very high-resolution images, large masks can slow brush strokes and file operations.
- Applying the mask is destructive. Keep an unmasked duplicate if you might need the original adjustment flexibility later.
- Menu paths differ between GIMP versions. This workflow assumes GIMP 2.10; check Help > About and your installed menus before proceeding.
Closing
Start with a duplicate layer, add a white layer mask, and paint black where the tonal adjustment should not apply. Use gray or reduced brush opacity for smooth transitions. Verify with the mask thumbnail and visibility toggle, and leave the mask unapplied until you are certain the result is correct.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.