Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Adding a gradient to a layer mask

From: Photoshop CS4: Layer Masks in Depth

Video: Adding a gradient to a layer mask

Adding a black to white gradient to a layer mask is the professional way to create a seamless blend between the content of two layers in the same document. If you have a different images on two layers, as I do here, this technique will create a smooth gradual fade between those images that often looks better than the result you get by painting with black, white or gray on a layer mask, or even by working with a precise selection on a layer mask. Before I get started with this technique, let me show you the two images that I want to blend together. On the top layer, the carnival layer in the Layers panel, I have this image of a masked figure at the carnival in Venice, Italy.

Adding a gradient to a layer mask

Adding a black to white gradient to a layer mask is the professional way to create a seamless blend between the content of two layers in the same document. If you have a different images on two layers, as I do here, this technique will create a smooth gradual fade between those images that often looks better than the result you get by painting with black, white or gray on a layer mask, or even by working with a precise selection on a layer mask. Before I get started with this technique, let me show you the two images that I want to blend together. On the top layer, the carnival layer in the Layers panel, I have this image of a masked figure at the carnival in Venice, Italy.

I'll make that layer invisible by clicking its eye icon, so you can see the content of the layer below, the canal layer, and this a canal in Venice. And then I'll make the carnival layer visible again, by clicking its eye icon. The first step is to add a layer mask to the top layer, the carnival layer. To do that with the carnival layer selected, I'll go down to the Add Layer Mask icon at the bottom of the Layers panel, and I'll click that icon. That adds a layer mask represented by this thumbnail, and you can see that the layer mask is filled with white pixels. As I have said in previous movies, white pixels on the layer mask like this reveal all the content on the attached layer.

So we can now see everything on the carnival layer. I would like to add a grayscale gradient to this layer mask. That's going to partially and gradually hide the content on the carnival layer, so we can see down to the canal on the layer below. To do that, I'm going to go to the Toolbox, and I'll select the Gradient tool. Then I'll go down to my foreground and background colors, what I want to do is create a gradient that runs from the foreground color to the background color. By default, the Gradient tool creates a gradient that runs from the foreground color to the background color.

I would like to make a gradient that goes from black, which hides to white, which reveals. So I'm going to switch my foreground and background colors by pressing the X key on my keyboard. I'll go up to the Gradient bar in the Options bar for the Gradient tool, and it should look just like this with black on the left and white on the right. If your gradient doesn't look like this, click the arrow just on the right side of this field, and in the palette that opens, you should see this default set of gradients. Click on the first icon here, which represents the foreground to background gradient preset.

If you don't see this particular set of icons, go to the arrow on the right side of this palette, click there, and choose Reset Gradients and then click OK, and that will bring up this default set of gradients from which you can choose the first one, the foreground to background gradient. Then click in a blank area of the Options bar to close that palette. Now I'm ready to draw my gradient. I'm going to double-check in the Layers panel that there is a border around the layer mask thumbnail, rather than the image thumbnail on the carnival layer. Then I'll go into the image and I'm going to start on the left side of this image, and I'm just going to click and drag across the image, stopping somewhere in the middle of the woman's mask.

It is always a guess where to start and stop that gradient line. The length and direction of that line affect the way that your gradient will look. In this case, I have done a pretty good job of drawing a gradient that hides the left side of the carnival layer, and then gradually begins to show the image on the carnival layer, until I get over to the right side of the carnival layer, where I can see the content of that layer. Let's take a look at the layer mask that's causing this behavior. I'm going to hold the Option key on the Mac or the Alt key on the PC, as I click on the layer mask on the carnival layer.

Because I dragged from the left side to the right side with a foreground to background gradient, I have black in this area that's hiding the content of the carnival layer. White, over on the right that's showing the content of the carnival layer, and then a gradual progression of shades of gray from left to right that creates this soft blend between the content that's showing, and the content that's hidden on this layer. I'll go back to the regular view by holding the Option key on the Mac or the Alt key on the PC, as I click on that layer mask thumbnail again.

And now I can come in and tweak this gradient. I could draw the gradient again, if I don't like the way it turned out the first time. So I could start up here for example, and maybe stop here, and notice that each time I draw this gradient, I get a different look. After I have drawn the gradient, I can come in with the Brush tool and fine-tune it. So in this case I might get the Brush tool here in the Toolbox, and let's say that I would like to hide a little bit more of the woman's hat. I'll leave my foreground color set to black, which hides on the layer mask, I'll come into the image, and I'm going to make my brush bigger interactively, so that I can see the brush tip, by pressing the right bracket key on my keyboard.

I also want to use a soft brush, so I'm going to hold down the Shift key as I press the left bracket key on my keyboard, and that will make the edge of this brush tip softer. Then I'm going to go up to the Opacity field for the Brush tool, and I'm going to lower the opacity of the brush slightly, so that I'm not painting with black paint, but rather with gray paint, as I click and drag over this portion of the image. Now let's take a look at the layer mask, by holding the Option key on the Mac or the Alt key on the PC, and you can see the gray pixels that I have drawn in there on top of the gradient.

So I often use a mix of painted grayscale pixels along with a grayscale gradient on a layer mask, like this. I'm going to Option or Alt click again on the layer mask thumbnail to go back to the regular document view. I want to show you one more thing about the Gradient tool. If I select the Gradient tool again in the Toolbox, and I go up to the Options bar, I see a series of five icons here, which represent the shape of a gradient. I was using the default shape, the Linear Gradient to draw the gradient on the layer mask that you just saw.

Let's try another kind of gradient, a Radial Gradient by clicking the second icon from the left in this series of five icons in the Options bar. Now, this gradient is going to draw a circular gradient from the inside out. What I would like to do is to have the woman's face on the carnival layer showing, but then have that gradually fade out in a circular pattern. So I want to start with white in the center of the radial gradient. To make that happen, I'll just switch my foreground and background colors by pressing X on my keyboard, or clicking this double arrow.

Now I can see in this gradient field in the Options bar that I'll be drawing a white to black gradient. I'll click in the middle of the woman's face, and I'll drag out toward the edge of the image, and this is the result that I get. If I want to see more of the woman's face, I'll try again, clicking in the middle of her face, and then dragging way out, pass the edge of my document window, and that makes the white part of the gradient lighter. Again, I could come in with the Paint Brush tool and touch this up, perhaps eliminating a little bit of the image on the carnival layer over here, by switching to black paint, clicking the double pointed arrow or pressing X on my keyboard, getting my Brush tool, and with a soft brush and a low brush opacity, I'll remove a little bit of the carnival layer here, and maybe up here as well, and this is all subjective.

Making use of the Gradient on this layer mask to get just the effect that I want. A grayscale gradient on a layer mask can be used to combine two different images as I have done here. But it's also useful to combine two versions of the same image. Like say two photographs that you have taken with different exposures, or with different white balance settings. A grayscale gradient is also useful for gradually fading the effect of a photo adjustment between one part of an image and another. I'm going to show you how to use a grayscale gradient for both of those situations later in this course.

But now you have the basics of adding a grayscale gradient to a layer mask, to get some really interesting results.

Show transcript

This video is part of

Image for Photoshop CS4: Layer Masks in Depth
Photoshop CS4: Layer Masks in Depth

51 video lessons · 30161 viewers

Jan Kabili
Author

 
Expand all | Collapse all
  1. 5m 13s
    1. Welcome
      1m 11s
    2. Using the exercise files
      1m 5s
    3. Making a course workspace
      2m 57s
  2. 47m 20s
    1. What is a layer mask?
      4m 25s
    2. What are layer masks used for?
      6m 15s
    3. Introducing the Masks panel
      6m 43s
    4. Adding a layer mask
      4m 28s
    5. Converting a background layer for masking
      2m 58s
    6. Targeting a layer mask
      4m 2s
    7. Painting on a layer mask
      5m 2s
    8. Viewing a layer mask
      5m 31s
    9. Disabling a layer mask
      1m 54s
    10. Deleting and applying layer masks
      3m 29s
    11. Saving layer masks with a file
      2m 33s
  3. 30m 25s
    1. Filling a selection on a layer mask
      8m 0s
    2. Making a layer mask from a selection of the foreground
      4m 8s
    3. Making a layer mask from a selection of the background
      4m 12s
    4. Adding a gradient to a layer mask
      7m 47s
    5. Pasting into a layer mask
      6m 18s
  4. 19m 13s
    1. Adjusting mask density
      4m 1s
    2. Feathering masks
      5m 44s
    3. Fine-tuning mask edges
      9m 28s
  5. 47m 9s
    1. Moving and copying layer masks
      6m 42s
    2. Inverting layer masks
      3m 40s
    3. Loading selections from layer masks
      1m 38s
    4. Unlinking layer masks
      4m 46s
    5. Filtering layer masks
      4m 0s
    6. Adding adjustments to layer masks
      4m 46s
    7. Adding layer masks to layer groups
      8m 48s
    8. Adding layer masks to Smart Objects
      6m 26s
    9. Using layer masks with layer styles
      6m 23s
  6. 12m 21s
    1. Creating vector masks
      5m 4s
    2. Editing vector masks
      2m 53s
    3. Using vector masks with layer masks
      4m 24s
  7. 41m 38s
    1. Combining images
      9m 42s
    2. Replacing a background
      7m 48s
    3. Putting an object inside another
      6m 57s
    4. Pasting into a selection
      3m 57s
    5. Intersecting objects
      6m 26s
    6. Limiting a fill layer
      6m 48s
  8. 55m 45s
    1. Limiting adjustment layers
      7m 20s
    2. Adding grayscale pixels to an adjustment layer mask
      5m 4s
    3. Copying adjustment layer masks
      5m 14s
    4. Applying blend modes selectively
      2m 51s
    5. Retouching portraits selectively
      5m 43s
    6. Combining bracketed exposures
      8m 18s
    7. Combining Camera Raw exposures
      6m 56s
    8. Manipulating depth of field
      4m 41s
    9. Targeting image sharpening
      5m 36s
    10. Framing photographs
      4m 2s
  9. 56s
    1. Goodbye
      56s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Photoshop CS4: Layer Masks in Depth.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.