This sample file contains assets provided by Adobe Stock for your tutorial practice purposes only. Check out the ReadMe file in the folder for the terms of use for this file. Adobe Stock has millions of royalty-free images and videos for your commercial use. You can get 10 images with a free month trial.
Introduction
If there's one key - to getting better at Photoshop, it's layer masking.
So we've put together - this short tutorial series to help you with layer masking basics.
I'm Jan Kabili from Adobe's learn team, and I'm excited to be your guide - for this short course.
In this tutorial, I'll show you - the fastest way to make a layer mask by starting with an automatic selection - and turning it into a layer mask.
Along the way, you'll learn the best way - to replace a photo background as we take an image from this to this.
You don't need a lot of experience - with Photoshop before you take this course, but you'll get the most out of it if you're familiar with the basics - of layers and selections.
In the meantime, let's get started - making a layer mask from a selection.
Planning a non-destructive background replacement
The image we'll be working with - has two layers, this photo of a photographer - in front of a fence on the top layer and this blurred cityscape - on the bottom layer that we're going to use - to replace the fence and give the photographer - a brand-new background.
Now you might think that the best way - to replace the fence would be to erase it.
But that would permanently alter the image, - which would make it difficult to change our minds if we wanted to take the image - in a different direction later.
So instead of erasing the fence permanently, - we'll use a layer mask to just hide the fence temporarily.
How are we going to make that layer mask?
In this tutorial, - we'll use the simplest way to create a layer mask, which is to make an automatic selection, - and then turn that selection into a mask.
We'll start here in the Layers panel - and make sure that the top layer, the Photographer layer, is highlighted.
Because this is the layer - to which we want to add a layer mask.
Then we'll make a selection - of the photographer,
Selecting the main subject with select subject
we could use any selection method, - but Select Subject is a good choice because it's an effortless automatic method.
And it usually does a good job - when there's a dominant subject to select, like the photographer in this image.
So we'll go up to the Select menu and choose Subject.
And that applies - the Select Subject command.
Now if you take a look at the edge - of the photographer, you can see these moving dotted lines, - which are called the marching ants.
And they're showing us - that there's a pretty good selection all around the photographer, - and even in this small area above her arm where the fence is showing through.
So we're done making the selection.
Now we're going to tell Photoshop - to automatically turn the selection
Converting a selection into a layer mask
into a layer mask with just one click.
To do that, - we'll go to the bottom of the Layers panel and click this icon that looks like a circle - inside of a rectangle.
This is the Add Layer Mask button.
That caused Photoshop - to make a layer mask, which you can see here - in this new thumbnail that's on the Photographer layer.
The next step is optional.
But if you want to get a better view - of this layer mask, you can hold the Option or Alt key - and click on that layer mask thumbnail.
And that will show the layer mask - here in the Document window.
In here you can really see - that on the mask, the area that was selected is white, and the area - that was not selected is black Photoshop added the black - to the mask automatically, because a selection was active - when the layer mask was created.
And that saved you time and effort of manually adding black and white - to the mask by brushing or applying a gradient - to the mask or making a selection and filling it.
Understanding mask behavior and final result
Some of which we'll do - in other tutorials in this series.
Now it's important to remember - that black on a layer mask hides content on the mask layer, and white on a layer mask - shows content on the mask layer.
So let's go back to the regular view - to see what that means for this image.
Again, I'll Option or Alt click - on the layer mask thumbnail.
As you can see, the black part - of the layer mask is hiding the area - all around the photographer so the cityscape can show through and the white part of the layer mask - is showing the photographer.
And that's exactly the result we wanted.
So we're pretty much done.
But that was a lot.
So let's recap the top four things - I'd like you to remember from this tutorial.
Number one, a quick way - to make a layer mask is to make an automatic selection - and then convert that selection into a mask.
Number two, this not only makes - a new layer mask, it also populates the mask - with black and white, black where there was no selection and white where there was a selection.
Number three, black on a layer mask - hides content on the masked layer and white on a layer mask - shows content on the masked layer.
And finally, the result - of this quick technique is a non-destructive, reversible layer mask - that you can change at any time.
And it gives you a great way - to replace the background of an image. -
What you learned
How to automatically select a subject Select the main subject on a layer automatically using Select > Subject.
How to turn a selection into a layer mask
You can turn any selection into a layer mask by creating a layer mask while the selection is active. When you make a layer mask from a selection, Photoshop automatically adds black to the layer mask where there was no selection, and Photoshop leaves the area where there was a selection white.
How to replace a background nondestructively One use for creating a layer mask from a selection is to replace a background. The black that Photoshop adds to the layer mask hides the area around the selection, without deleting that area permanently. This causes layers below to show through and appear as a new background for the subject.
You can control how Adobe websites use cookies and similar technologies by making choices below. But note that if you disable cookies and similar technologies entirely, Adobe websites may not function properly.
Cookies are small text files stored by your web browser when you use websites. There are also other technologies that can be used for similar purposes like HTML5 Local Storage and local shared objects, web beacons, and embedded scripts. These technologies help us do things like remembering you and your preferences when you return to our sites, measure how you use the website, conduct market research, and gather information about the ads you see and interact with.
You can make choices in the menu below about what cookies and other technologies you want us to use on Adobe sites when you visit them from this browser. You can always change those choices later by clicking on the Cookie Preferences link at the bottom of the page.
If enabled:
We can improve your experience by tailoring the site and the content to things we think might be of interest
We can better keep track of your preferences — like what language you prefer to use
We will better understand your likely interests so we can provide you more relevant Adobe ads and content on non-Adobe websites and in non-Adobe apps
It will help us improve the performance of our website and those of our partners who use the Adobe Experience Cloud
If disabled:
We won’t be able to remember you from session to session so the experience may not be tailored to your interests
You’ll still have access to the content of the site but certain features that depend on cookies may not function
You’ll still see ads, they just may not be as relevant to you
General information
You can control how Adobe websites use cookies and similar technologies by making choices below. But note that if you disable cookies and similar technologies entirely, Adobe websites may not function properly.
Cookies are small text files stored by your web browser when you use websites. There are also other technologies that can be used for similar purposes like HTML5 Local Storage, web beacons, and embedded scripts. These technologies help us do things like remembering you and your preferences when you return to our sites, measure how you use the website, conduct market research, and gather information about the ads you see and interact with.
You can make choices in the menu below about what cookies and other technologies you want us to use on Adobe sites when you visit them from this browser. You can always change those choices later by clicking on the Cookie Preferences link at the bottom of the page.
If enabled:
We can improve your experience by tailoring the site and the content to things we think might be of interest
We can better keep track of your preferences — like what language you prefer to use
We will better understand your likely interests so we can provide you more relevant Adobe ads and content on non-Adobe websites and in non-Adobe apps
It will help us improve the performance of our website and those of our partners who use the Adobe Experience Cloud
If disabled:
We won’t be able to remember you from session to session so the experience may not be tailored to your interests
We’ll still count your use of our site and services
You’ll still have access to the content of the site but certain features that depend on cookies may not function
You’ll still see ads, they just may not be as relevant to you
Operate the site and core servicesOperate site and measure engagement
Always active
These cookies are required, and they are used to enable the site and related services core functionality. Without them the site could not operate, so they cannot be disabled.
These cookies enable the site and related services’ core functionality and collect statistics about user engagement, such as counting active use to help us understand trends. These cookies cannot be disabled.
Measure performance
These cookies are used to analyze site usage to measure and improve performance. Without them Adobe cannot know what content is most valued and how often unique visitors return to the site, making it hard to improve information we offer to you.
These cookies are used to analyze site usage to measure and improve performance. Without them Adobe cannot know what content is most valued, making it hard to improve information we offer to you.
Extend functionality
These cookies are used to enhance the functionality of Adobe sites such as remembering your settings and preferences to deliver a personalized experience; for example, your username, your repeated visits, preferred language, your country, or any other saved preference.
Personalize advertising
These cookies are used to enable Adobe and our partners to serve ads more relevant to your interests. Without them you will still see ads, but they might not be as relevant to you.
Personalize advertising
These cookies are used to enable Adobe and our partners to serve ads more relevant to your interests. Without them you will still see ads, but they might not be as relevant to you.