Layer Masks: Non-Destructive Hiding, Not Deleting

Raster Editing Fundamentals

Chapter 5 · Layer Masks: Non-Destructive Hiding, Not Deleting

Chapter 4 closed by promising that masks let visibility vary by area rather than uniformly across a whole layer. This chapter is that concept in full — arguably the single most important non-destructive editing technique this course covers.

The Core Idea: Black Conceals, White Reveals

A layer mask is a grayscale channel attached to a layer. Painting black on the mask hides that area of the layer; painting white reveals it; gray produces partial transparency somewhere in between. This simple rule works identically in both Photoshop and GIMP, and is worth memorizing exactly as stated — black conceals, white reveals.

Masking vs. Erasing: The Critical Distinction

The Eraser tool permanently deletes pixel data from a layer — genuinely destructive, with no way back except undo history or starting over from an earlier saved version. A layer mask instead hides pixels without touching the underlying pixel data at all. Repainting white on the mask instantly restores full visibility, since the original pixels were never actually removed in the first place — only ever hidden.

Painting on a Mask

The Brush tool must be applied directly to the mask's own thumbnail — not the layer's own image thumbnail — for it to actually paint on the mask rather than the image itself. A genuinely common beginner mistake: accidentally painting on the image directly because the wrong thumbnail was selected. Both Photoshop and GIMP show a highlighted border around whichever thumbnail is currently active, worth checking before painting anything.

Creating a Mask From a Selection

Chapter 3's own selection tools become directly useful here: when a mask is added while a selection is active, that selection automatically becomes the mask's own black-and-white pattern — the selected area becomes visible (white), everything outside it becomes hidden (black). This is the natural bridge between Chapter 3's own selection work and this chapter's own masking concept.

Layer Masks in GIMP vs. Photoshop

Both tools support masking identically in concept, with one minor workflow difference: Photoshop's own mask thumbnail appears automatically next to a layer's own thumbnail the moment a mask is added. GIMP requires explicitly adding a Layer Mask via its own menu command first, before a mask thumbnail appears at all — a workflow difference, not a conceptual one.

ActionPhotoshopGIMP
Adding a maskLayer > Layer MaskLayer > Mask > Add Layer Mask
Painting the maskBrush on mask thumbnailBrush on mask thumbnail
Mask ruleBlack hides, white revealsBlack hides, white reveals
The foundation for everything imageedit2 builds on
This chapter's own black/white/gray rule is exactly what Advanced Compositing & Retouching's own Chapter 2 (Advanced Masking: Channels & Refine Edge) builds on directly — channel-based selection for fine detail like hair ultimately produces the same black/white mask pattern this chapter introduces, just generated through a more sophisticated process.
Deleting a mask isn't the same as temporarily disabling it
It's easy to assume deleting a layer mask is basically the same as just turning it off for a moment. Deleting a mask permanently discards it (usually with a prompt asking whether to apply its current effect or discard it first). Disabling a mask instead — shift-clicking its thumbnail, or the equivalent in either tool — temporarily ignores it entirely without losing any of the actual mask data underneath. This is a genuinely useful, fully non-destructive way to compare "with mask" against "without mask" side by side, without committing to deleting anything at all.

Hands-On Exercises

Exercise 1

You've carefully selected a person in a photo using the Lasso/Free Select tool from Chapter 3, and want everything outside that selection to become hidden on this layer. Explain what happens when a mask is added while that selection is still active.

📄 View solution
Exercise 2

A user paints black with a large brush, intending to hide part of a layer via its mask, but instead permanently damages the actual image content. Using this chapter's own material, explain the most likely mistake.

📄 View solution
Exercise 3

You want to quickly compare how an image looks with a particular mask applied versus without it, without risking losing the mask's own careful work if you decide to keep it. Using this chapter's own warning box, explain the correct way to do this.

📄 View solution

Chapter 5 Quick Reference

  • The core rule: black conceals, white reveals, gray is partial — identical in both tools
  • A mask hides pixels non-destructively; the Eraser permanently deletes them — a critical distinction
  • Always confirm the mask thumbnail (not the image thumbnail) is active before painting
  • An active selection, when a mask is added, becomes the mask's own black/white pattern automatically
  • Disabling a mask (temporary) is not the same as deleting it (permanent) — disabling lets you compare freely with no risk