
Do you use the eraser tool in Photoshop but get frustrated when you need to get part of that image or layer back? If so, then you need to learn how to use "Layer Masks" and I'm going to teach you right now!
The easiest way to learn about layer masks is to learn how to create one and then experiment with it.
To get started:
1) Grab any photo and open it in photoshop.
2) In the layer palette, right click on this photo layer (it should be called "Background") and click "Layer from background." Name this layer "Photo" and click OK. This will convert this background layer to a normal editable layer named "Photo".
3) In the top menu of photoshop select: Layer > New > Layer, name it "Red Background" and Click OK. Set the foreground color of your color palette to red and using the paint bucket tool fill this layer with red. Now put this new layer behind the "Photo" layer.
4) Now it's time to create a mask on your "Photo" layer. Select the "Photo" layer and click the icon at the bottom of the layer palette called "Add layer mask" (it looks like a circle within a square). After clicking on this you will see a link icon appear next to your photo layer which connects it to its new layer mask.
5) Notice how you can click on either side of this link icon and select whether to edit the actual photo, or the mask that's connected to it. If you click back and forth on each one you'll see the selected one highlight. Make sure the mask is highlighted as opposed to the photo. Now you're ready to start editing the mask.
6) Choose the brush tool, set the foreground color in your palette to black and start drawing anywhere on the canvas. You should start to see the photo disappear where you draw and the "Red Background" layer that's behind it show through. Now if you set the foreground color in your palette to white and paint on the mask, it will fill in the mask and make those areas of the photo reappear! If you click window > brushes you will make the brush palette appear. Play around with selecting various brush sizes and shapes and painting on the mask with black and white to see how painting on the mask affects the "Photo" layer it's connected to in a non-permanent way.
Editing layer masks isn't limited to the brush or any other drawing tool. You can also select an area on a photo you want to preserve and remove the rest. Using the marquee, lasso, magic wand or any other selection tool create a selection area on a photo. After the area you want preserved is selected, click the "Add Layer Mask" icon to mask the layer and remove anything outside of this selection.
As I said earlier, the most powerful part about layer masks is that you can always get the original photo or layer back. Do do this, either fill the mask with white, or right click the mask and disable or delete it.
Common uses for layer masks are:
- Cutting out people or objects in photos
- Fading photos into the background or other layers that are behind it
Things to try:
- Instead of using the "Red Background" layer, try dragging another photo in and see how masking the "Photo" layer will make this 2nd photo appear through
- Fill the mask with a black to white gradient to cause the photo layer to fade to transparent
Helpful Shortcuts Keys:
- To set your palette colors to Black and White hit the (D) key
- To switch your foreground and background colors hit the (X) key
These are helpful when you're doing quick editing and you want to quickly switch between erasing and filling in areas of a mask.
If used properly, you might not need to use the eraser tool ever again!