Canddi

Creating a layer mask from a selection

A layer mask controls which parts of a Photoshop layer remain visible. To create one from a selection, select the area you want to keep, then choose Layer > Layer Mask > Reveal Selection. The selected area stays visible; the rest is hidden by the mask.

Understand the mask colours

A pixel layer mask is a greyscale image attached to a layer. White reveals that layer, black hides it and grey gives partial visibility. A useful reminder is white reveals, black conceals.

White reveals an image layer, black hides it to show layers below, and grey partially reveals it.
Mask colours control visibility. This concept guide is not a Photoshop interface screenshot.

Hiding an area with a mask preserves the underlying pixels while the mask remains editable. That does not protect against every destructive action: painting on the image thumbnail, deleting pixels or flattening the document can still remove editing flexibility. Keep a layered working file.

Set up a two-layer practice image

The original exercise combined a lodge photograph with a different sky. You can practise the same principle with your own building or landscape photograph and a sky image you have permission to use.

  1. Place both photographs in one Photoshop document.
  2. Name the upper image layer Lodge and the lower replacement layer Sky.
  3. Position the Sky layer so it covers the area that will be revealed. Keep both layers visible.
  4. Select the Lodge layer in the Layers panel.

Choose images with compatible viewpoints and lighting. A mask can reveal another sky, but it cannot by itself make mismatched light direction, colour or perspective convincing.

Select what you want to show

Use Quick Selection to select the building and foreground, leaving the original sky unselected. Spend time on the roofline, trees and other boundaries. You can use Quick Mask mode to paint corrections into the selection before creating the layer mask.

  1. With the selection active and Lodge still selected, choose Layer > Layer Mask > Reveal Selection. Clicking the layer-mask icon in the Layers panel also reveals the selection.
  2. Check the new mask thumbnail beside the image thumbnail. The selected foreground should be white and the hidden sky should be black.
  3. Confirm that the replacement Sky layer appears through the hidden area.

If the result is reversed, check whether you selected the sky or used Hide Selection. Adobe’s layer-mask guide distinguishes the reveal and hide commands.

Refine the mask, not the photograph

Click the mask thumbnail before using the Brush tool. Paint black to hide unwanted parts of the upper layer and white to restore parts you want visible. Use an appropriate brush size and hardness for each edge; avoid a single very soft brush setting around every object.

Inspect the boundary at 100% and at the intended viewing size. Look for an outline of the old sky, missing parts of the roof, and abrupt transitions. Then compare the colour and brightness of the foreground and replacement sky. Edge cleanup and colour matching are separate jobs.

Save the document as a layered PSD so the mask and both photographs remain available for revision. Export a separate copy for sharing rather than flattening your only working file.

Build this Photoshop skill

Explore Photoshop courses to develop your selection, masking and compositing skills, or contact Academy Class for course guidance.

Course enquiries

Let’s find your next course

Tell us what you’d like to learn. We’ll help you choose the right course.

Your details are used to respond to your enquiry. Privacy policy