Photoshop Background Eraser Tutorial

The Background Eraser Tool In Photoshop

Learn Photoshop with Photo Editing Tutorials at Photoshop Essentials.com

Sampling Options

Whenever we have the Background Eraser selected, the Options Bar along the top of the screen displays various options for controlling how the tool behaves. One of the most important behaviors we can change is how Photoshop samples colors under the target symbol, or if it samples them at all.

Directly to the right of the Brush Presets picker on the left side of the Options Bar are three icons. Each of these icons selects a different sampling option. From left to right, we have Continuous, Once and Background Swatch:

The Continuous, Once and Background Swatch sampling options for the Background Eraser in Photoshop. Image © 2010 Photoshop Essentials.com
From left to right: The Continuous, Once and Background Swatch sampling options.

Of these three, the two you'll switch between the most are Continuous (the icon on the left) and Once (the middle icon). Continuous is selected by default, and it means that as we move the Background Eraser around, Photoshop continuously samples the color under the target symbol. That's why, when I accidentally moved the target symbol over the green column or the green tree, Photoshop started erasing green pixels in the image even though I was initially erasing blue pixels.

The Continuous sampling option works great when you're trying to erase backgrounds that contain multiple colors, but if the color of your background doesn't change much, the Once option usually works better. I'll select it by clicking on the middle icon:

Selecting the Sample Once option for the Background Eraser in Photoshop. Image © 2010 Photoshop Essentials.com
Selecting the Once sampling option in the Options Bar.

As you may have guessed from its name, Once tells Photoshop to sample the color under the target symbol once and that's it. Whichever color is under the target symbol the moment you click your mouse button is the color that Photoshop will erase no matter how many other colors you drag the target symbol over (while you're still holding the mouse button down). Watch what happens now when I "accidentally" move the target symbol over the green column. The Background Eraser has no effect on it this time because the target symbol was over the blue column when I clicked my mouse button:

The Background Eraser sampling option is set to Once. Image © 2010 Photoshop Essentials.com
Photoshop no longer erases the green column even though the target symbol has moved over the green color.

We see the same thing happening in our photo. With Once selected as the sampling option, Photoshop is able to ignore the tree this time even though I've moved the target symbol over it, and that's because I initially clicked on the blue sky:

The Background Eraser in Photoshop with the Once sampling option selected. Image © 2010 Photoshop Essentials.com
With Once selected, the only color Photoshop will erase is the one that was sampled initially.

If you're having trouble positioning the target symbol over the color you want to erase, try the Background Swatch sampling option (the icon on the right). With Background Swatch selected, click on the Background color swatch in the Tools palette and select a color from the Color Picker that matches (as close as possible, anyway) the color in your image that you want to erase. If the color you've selected isn't quite right, adjust the Tolerance value in the Options Bar (which we'll look at in a moment) until you're able to erase the pixels:

The Background color swatch in the Tools palette in Photoshop. Image © 2010 Photoshop Essentials.com
With the Background Swatch sampling option selected, choose a Background color similar to the color you need to erase.

Limits

Another important option for the Background Eraser is Limits. Once Photoshop knows which color you want to erase, Limits tells it where it can look for pixels that match the color so it can erase them. The two main choices for the Limits option are Contiguous and Discontiguous:

The Limits option for the Background Eraser in the Options Bar. Image © 2010 Photoshop Essentials.com
Choose either Contiguous or Discontiguous for the Limits option.

Contiguous, the default setting, means that Photoshop can only erase pixels in areas that are physically touching the pixel under the target symbol. In other words, it can't jump across tree branches, fence posts, or anything else in the photo that separates and isolates one area of pixels from another. This causes a problem for me as I try to erase the sky showing through the tree branches:

The Background Eraser can't jump across the tree branches to delete the sky. Image © 2010 Photoshop Essentials.com
The branches on the tree act as road blocks for the Background Eraser as it tries to delete the blue sky pixels.

To get around this problem, I'll set my Limits option to Discontiguous:

Setting the Background Eraser Limits option to Discontiguous in Photoshop. Image © 2010 Photoshop Essentials.com
Selecting Discontiguous for the Limits option in the Options Bar.

Discontiguous means that Photoshop is free to erase any pixels anywhere in the image that match the sampled color we're erasing, whether they're in the same area as the target symbol or not. Once I've clicked the target symbol on an area of blue sky, I can simply drag the Background Eraser around inside the tree to easily erase the sky showing through it (I have my sampling option set to Once so Photoshop doesn't change the color being erased as I move over the tree):

Using the Background Eraser with Limits set to Discontiguous. Image © 2010 Photoshop Essentials.com
With Limits set to Discontiguous, erasing the blue sky through the tree is as easy as dragging the Background Eraser around.

Unfortunately, if we look closely, we can see some darker blue areas of the sky remaining around some of the tree branches. Even with the Limits option set to Discontiguous, the Background Eraser still needs a little more help with this image:

Blue fringes still appear around some of the tree branches. Image © 2010 Photoshop Essentials.com
Some blue fringes still remain around some of the tree branches.

This brings us to the third important option for the Background Eraser, and the one that can make all the difference when it comes to using the tool successfully - Tolerance, which we'll look at next!

New! Download our Photoshop tutorials as convenient, print-ready PDFs!

Go to page: 1 | 2 | 3