Fade Images in Photoshop Using Layer Masks

"I need an ad for the company home page advertising our spring sale," your supervisor says.

"Can you turn it around in the next hour?"

"The next hour?" you reply. "Just give me five minutes!"

The next thing you know, you're getting a raise in the time that it takes you to make a layer mask.

One of the best Photoshop tools to have in your arsenal is an understanding of how to use Layer Masks to "fade" pictures (a three-minute browsing session on your favorite Websites will show that lots of people use this effect). Not only does the effect look professional, it's quick to achieve. Within seconds, you'll have a sharp-looking image for your Website... and you might even impress a few supervisors while you're at it! Who would pass up an opportunity like that?

You will see two ways to use Layer Masks to fade pictures. As you learn how to use Layer Masks, you'll also pick up other skills in Photoshop:

·  Get images into a Photoshop document

·  Work with layers

·  Use the gradient, brush, and move tools

·  Resize images and layers

Eager to get started? Open Photoshop, download SB-layermask.jpg, and let's go!

The Basic Fade

First, let's look at creating a basic fade effect that will result in an image like this:

Open your original photo in Photoshop.

Since this tulip photo was from my digital camera, it was a whopping 800x1200 pixels. If your image is a lot bigger than the size of the final Web image that you want to create, click on "Image," then select "Image Size," and specify a new width and height for your image. I resized my image to a workable 300x450 pixels.

Starting Your New Document

To preserve the original photo, we'll create a new document.

1.  Go to FileNew

2.  Dimensions: Width 300 pixels, Height 450 pixels

3.  Color: RGB, Background: White

4.  Then, go back to the original image and choose Select>All. This will select everything in the image.

5.  Now select Edit Copy and then close the image without saving.

6.  In the brand new document select Edit>Paste to paste your photo. You should now have a new Photoshop document in which your original photo appears on its own layer.

Let's add a layer mask. With the Layers Palette open, click the "Mask" icon at the bottom of the palette.

This will add a layer mask, which you can see as a linked rectangle next to the picture.

Working With the Layer Mask

A layer mask is essentially a black and white "image." You can paint on the layer mask in white, black, and any shade of grey. White areas will allow the picture to show through; black areas will hide the picture. Shades of grey will affect the transparency -- also known as the opacity -- of the picture. For now, we'll create a simple black-to-white gradient on the layer mask. To do that, first select the Gradient Tool from the tool palette (you can hit the "g" key on the keyboard, as well, to toggle between the Gradient Tool and the Paint Bucket Tool).

Set your foreground color to black and your background color to white. You may click on the foreground and background boxes in the tool palette and choose the colors. Or, if your foreground is already white and your background is black, click the arrow icon to switch them.

Make sure that the gradient toolbar previews a black-to-white gradient, as shown below (the black-to-transparent gradient will work as well).

Click once on the layer mask to make sure that you're "on" it, so that you don't accidentally paint your picture black! Then, click at the bottom of the picture, hold the mouse, and drag the mouse straight up. You can hold the shift key while you drag to "force" the cursor to move in a straight line. Move the cursor up to about where you want the fade to "end," and let go.

And there you have it –

your first beautiful fade using a layer mask!

Manipulating Layers

Now, as I look at the picture, I decide that I don't like the way the fade "hides" part of that tulip. In fact, I want to somehow move the whole picture "up," but leave the gradient the same. The beautiful thing about layer masks is that this is possible!

A quick word about the wrong way to achieve this effect: It would have been just as easy (and saved a few steps) to set the gradient tool to a white-to-transparent gradient, then add a white gradient to the bottom of the picture layer. The problem with this approach is that the white gradient becomes a permanent part of your picture. You can't move the picture or the gradient around and, if you decide you don't like the gradient several steps down the road, you can't get rid of it without losing any other changes that you've made. All of this should convince you that layer masks are awesome!

Finally, add the text, Spring Sale and 20% off all women’s apparel and save your file.

Here's an extra tip. What if you want the image to blend into a site that has a different background color? The answer is simple -- use the paint bucket to fill in the Background layer with your desired color. Just select the color, then the bucket tool and click on the image.

Another beautiful aspect of layer masks is that they change the actual transparency of parts of the image, so you can overlay the picture on any background! The picture below shows the colored Background layer, and our perfectly fading tulip and ad copy.

In this second project, you'll learn how to use the airbrush tool on a layer mask for delectable results. The end-product will look something like this:

We start with a picture of an excited shopper on its own layer, with a layer mask already applied. If you do not remember how to start, look again at how you started the previous image.

I want to hide the faint lettering above her hands, and fade out the right side to make way for my great advertising copy. Because the shape of the woman and shopping bags doesn't match well with a straight gradient, I decide to use the brush tool for a more organic fading effect.

To start, select the brush tool from the tool palette. You may use the keyboard shortcut "b" to toggle between the brush and pencil tools.

In the Brush toolbar, click on the brush type dropdown and choose a suitable soft-edged brush. I chose the 100-pixel diameter brush.

Then, start painting the edges of the picture's layer mask -- with a black foreground, of course -- to "hide" part of the picture.

Manipulating the Picture

As I look at the result, I decide that the picture of the excited shopper is a little too big, as the final picture needs to have a bar of text across the top. To shrink the picture without shrinking the layer mask, first unlink the picture and layer mask by clicking on the link icon in the Layers Palette.

Click once on the picture in the Layers Palette to select it. Then, select the Move tool from the Tool Palette. Edit>Free Transform to "Transform" the image.

Click on the corner of the picture, hold, and drag the corner down to resize the image. Hold the shift key while dragging to "constrain" the picture so that it resizes proportionately -- the last thing you want is a squished shopper!

After you get the picture to the desired size, double-click inside the rectangle to apply the change.

The picture is now the right size, but I decide that I also want to "fade out" the shopping bags slightly so that the woman really stands out. I don't want to hide the bags completely, so I choose a dark grey color (#4D4D4D) instead of black to paint on the layer mask. With the brush tool, I paint over the shopping bags on the layer mask, and also decide to let a little bit of the background show through. In the picture below, you can see the different shades of black, grey, and white on the layer mask.

Touch up the edges of the layer mask with black paint and add ad the text, Get excited. The spring sale is coming to town.

Save your work.

Ready, Set, Mask!

Congratulations! You now know how to use the gradient tool and the brush tool on layer masks to create fantastic Web graphics. And you're only at the beginning of a huge range of possibilities. Here are a few suggestions as to how you might further apply your layer-masking power:

·  Create a collage of almost seamless pictures.

·  Photoshop a picture of yourself into a beautiful landscape … or any object onto your desired background!

·  Hide unsightly background objects from photos.