Master the intricacies of Photoshop with this comprehensive tutorial, guiding you through the use of layer masks, Magnetic Lasso tool, the Refine Edge dialog, Color Fill layers, and much more.
This exercise is excerpted from Noble Desktop’s past Photoshop training materials and is compatible with Photoshop updates through 2020. To learn current skills in Photoshop, check out our Photoshop Bootcamp and graphic design classes in NYC and live online.
Topics covered in this Photoshop tutorial:
The Magnetic Lasso tool, More practice with layer masks, The Refine Edge dialog, Color Fill layers
Exercise Preview
Exercise Overview
We will use a Layer Mask to remove the background from around a picture of a hat. Layer Masks offer the most editing flexibility and they are non-destructive. This exercise also involves importing into InDesign. You can do most of the steps if you don’t have InDesign, but you will not be able to finish the exercise.
Selecting the Hat
-
From the Photoshop Class folder, open the image hat.tif.
Notice how part of the hat’s brim is not in focus, and some areas of the background are a similar color to the hat. With a combination of selection tools and layer masks, even a challenging silhouetting task like this is a piece of cake!
Choose the Magnetic Lasso tool
.
-
In the Options bar, make sure it has the following settings:
Feather: 0 px Width: 10 px Contrast: 10% Frequency: 57 Click once along the brim to start the lasso selection. (Do not click and hold.)
- Move the cursor along the edges of the hat, and the lasso will lay down points along the path as the cursor moves. Keep in mind the following tips:
- When you reach a corner or tricky place, click to manually place a point.
- Press Delete (Mac) or Backspace (Windows) to back up and delete points that have been placed incorrectly.
- When you reach the end, place the cursor over the first point, so it changes to a
and click to finish the selection.
- In the Options bar, click the Select and Mask button.
- In the Properties panel on the right, click on the thumbnail next to View and double–click On Black.
- Set Opacity to 100%.
- In the Edge Detection section, make sure Radius is set to 0 px.
-
In the Global Refinements section, set the following:
Smooth: 10 Feather: 0.5 px Contrast: 0% Shift Edge: Around −40%, but experiment with what looks best for you. - In the Output Settings section, make sure Output To is set to Layer Mask.
- Click OK.
-
In the Layers panel, notice the Background layer has been changed into a regular layer with a new name (Layer 0) and a layer mask has been added.
NOTE: Background layers cannot be transparent or have layer masks, so the Select and Mask feature converted it into a normal layer for us!
- In the Layers panel, double–click the Layer 0 layer and name it hat.
- At the bottom of the Layers panel, click the Create new fill or adjustment layer button
, and from the menu, choose Solid Color.
- Choose black and click OK.
In the Layers panel, click and drag the Color Fill 1 layer below the hat layer.
Cleaning Up the Edges
There may be spots showing through from the old background, and the brim edge should be softer. Let’s start by fixing the top part of the hat. Later we’ll fix the brim.
In the Layers panel, double–click the Color Fill 1 layer’s thumbnail
.
-
Set the following RGB values:
R: 0 G: 70 B: 100 Click OK.
In the Layers panel, click the hat layer mask
.
Select the Brush tool
.
-
In the Options bar, choose a small-sized, fairly hard brush. We recommend about 8 px diameter and 90% hardness. This size will let you get into the corners nicely.
Make sure Opacity and Flow are set to 100%.
Press D to set the default white and black foreground and background colors.
Press the X key to switch the foreground/background colors so the foreground color is black.
Paint over areas where you see the original light background color around the hat (zoom in as needed). This will remove it, kind of like you are erasing it.
As needed, reduce the brush size to get into corners, etc.
- If you removed any parts of the hat and want to reveal them, remember:
- Paint white over any parts you want to reveal (like the hat).
- Paint black over any parts you want to hide (like the background).
- Press the X key to switch the foreground and background colors.
Finishing Up
The front and back of the brim are blurry in the photo, but the edge of our mask makes them look crisp.
Select the Blur tool
.
In the Options bar, choose a medium-sized soft brush (about 40 px, 0% hardness).
Click and drag to blur the edges of the brim in the front and back.
In the Layers panel, select the Color Fill 1 layer.
Drag it to the Trash button
to delete it. Now you should be left with a transparent checkerboard background.
Importing the Image into InDesign
To save this file, we need to choose a file format appropriate for InDesign.
Go to File > Save As.
Navigate into the Kissimmee Brochure folder (inside the Photoshop Class folder).
-
Set Format (Mac) or Save as type (Windows) to Photoshop and name the image yourname-hat.psd. Click Save.
NOTE: TIFF can also work, but you must check on Save Transparency.
Launch InDesign.
From the Kissimmee Brochure folder, open the InDesign file Brochure-add hat.indd.
Choose the Selection tool
.
On the bottom left, click on the empty rectangular picture box.
Go to File > Place.
Choose yourname-hat.psd and click Open.
Go to View > Display Performance > High Quality Display.
-
Zoom in and examine the blurry, semi-transparent parts. Very nice.
Enjoy your work—you’re done! Because we no longer need this file, close the InDesign file and do NOT save changes.