Photoshop Masking Tutorial: Extract a Photo

Photoshop Clipping Mask Tricks for Beginners

Photoshop masks let you show or hide parts of a picture.

Masks are like stencils, except that instead of hiding part of a photo, by default, they tell Photoshop which parts to show.

You can keep editing the mask until it's just right. So no more trying to erase around an image to cut away the background, only to find you've erased too much!

On this page, I'll teach you

-- How to give a photo an interestingly-shaped frame.

-- How to paint a picture on text!

-- How to draw your own clipping mask to make a stencil.

-- How to place all these on another background.

Masking 101: Clip Out a Piece of a Photo!

Top Layer is the Picture, Bottom Layer (Clipping Mask) Is the Stencil

Here's the basics -- how to make and use a clipping mask in five easy steps!

  1. Open the Layers Palette under the "Window" menu in Photoshop.
  2. On one layer, place an image or photo.
  3. Create another layer with a shape, text, or drawing. This is the clipping mask, and acts like a stencil.
  4. Move the clipping mask layer under the image's layer.
  5. In the Layers Palette, Alt-click on the border between the two layers (Opt-click on a Mac). You've got the right spot when you see the cursor change to two circles straddling the line between the two layers.

That's it!

There are many fun and powerful ways to use clipping masks. Try the examples below, and you'll quickly get the hang of them!

Text as a Clipping Mask: Put a Photo on Text
Text as a Clipping Mask: Put a Photo on Text

Clipping Mask Trick: Paint a Picture on Text!

A Text Layer as a Stencil

This is EASY!

  1. Open the Photoshop Layers Palette (Under the Window menu)
  2. Pick the Text tool and type something using a big bold font.

3. Create a new layer (click the notepad icon on the Layers Palette) and paste an image/picture.

In the Layers Palette, ALT-click (Option-click on a Mac) the border between the two layers. The bottom layer will be used as the shape/cutout/stencil; the top layer of the pair will be the image.

Want to add a drop shadow, outline, or other special effects? Select the Text layer on the Layers Palette. Then double-click the "F" icon at the bottom of the layers palette, or choose "Layer Style" under the Layer menu up top, to add drop shadows, stroke, or other effects.


Photoshop Clipping Mask Tutorial: Use a Shape as a Photo Frame
Photoshop Clipping Mask Tutorial: Use a Shape as a Photo Frame

Clipping Mask Trick: Use a Shape!

Make a Cool Photo Frame

Want to cut out a photo with a cool frame of any shape (see example at right)? Here's how!

  1. Paste an image into a new Photoshop document and open the Layers Palette (Under the "Window" Menu)

Pick a shape from the Shape tool. You could use an Ellipse (also makes circles), a rounded rectangle, or custom shapes (some are built-in, and there are thousands of Photoshop Custom Shapes available on the web).

Draw your shape. Don't worry, it won't cover up the picture when you're done. Just think of it like the hole in a stencil.

In the Layers Palette, drag the Clipping Mask one slot down so it's right below the image's layer.

In the Layers palette, Alt-click the border between the two layers. (Option-click on Mac.) This makes the bottom layer a mask.

Here's the result. When you go to "Save for Web," saving as a jpg will replace the checkerboard background with white. If you save as a PNG or GIF, you have an option to leave the background transparent.

Want to make the frame even fancier? While the Clipping Mask layer is selected in the layers palette, click on the F icon, OR choose "Layer Style" from the Layer Menu up at the top of your screen. You can add a stroke (an outline), a drop shadow, and many other effects! Here is a gray, 1-pixel-wide stroke, plus drop shadow.

Photoshop Masking: Oval Photo Frame Tutorial
Photoshop Masking: Oval Photo Frame Tutorial

Clipping Mask Trick: Oval Photo Frame

With Optional Soft Edge

You can pluck out a piece of a photo with the Lasso or Marquee Tools. However, by using a clipping mask, you won't lose any of the original picture, and you can adjust and experiment with the mask until you get the outline you like.

Let's practice.

  1. Copy a photo into a new document (NEVER work on your original raw photo -- you don't want to hit save by accident and lose it).

In the upper lefthand corner of your Tools palette, choose the Elliptical Marquee Tool. If it's not showing, click and hold down whatever icon's there (probably the rectangular selection tool) and choose the ellipse.Draw an elliptical selection on your photo. Hold down the shift key to get a perfect circle. After you let go, you can place your cursor over the selection, click and drag to move the selection outline around.

In the Layers Palette, click the notepad button to make a new layer. Or choose New Layer from the Layer menu at the top of the screen.Pick the Paint Bucket in the tools palette. Fill your selected area IN THE NEW LAYER. Make sure it's the new layer, not the layer with the photo!

In the Layers palette, move the clipping mask (the oval) layer down one slot, so that it is now below or behind the photo's layer.

Alt-click (PC) or option-click (Mac) between the two layers in the Layers Palette to set the bottom layer of the pair to be a mask or stencil.

Make sure you've still got the oval masking layer selected in the Layers Palette, NOT the photo. Now go up to the top of your screen, and under the Select menu pick Inverse. You've now selected everything except the oval.

Under the "Select" menu, pick "Feather..." and a small radius. Here, I chose 3. Then hit the delete key! This isn't deleting your original picture. Rather, it's deleting the edges of the mask, making them fuzzier. I found deleting twice got the effect I wanted.

Save For Web. I usually leave transparency off, when saving gifs or pngs, HOWEVER, there are times when you want the webpage you place the graphic on to show through. Then keep the transparency, save as gif or png!

Photoshop Clipping Mask Tutorial: Draw Your Own Mask
Photoshop Clipping Mask Tutorial: Draw Your Own Mask

Clipping Mask Trick: Freeform Doodle as Stencil

Draw Whatever Shape You Like! Or Paste a Shape You've Found!

Here's where things get really interesting. It took me all of two minutes to do this, tops:

  1. Open the Layers Palette under the Window menu (you got this).

  2. Paste a photo. (yep, you got this too.)

  3. In the Layers Palette, click the little notepad icon down at the bottom. Or else, under the Layer menu at the top of the screen, pick New Layer. You now have a blank layer.

  4. In the Layers palette, move the blank layer down so it's UNDER the photo. This blank is going to be your mask.

  5. Alt-click (option-click) the border between the two layers. Whoa! Your photo disappeared!

  6. Choose the paintbrush tool.

  7. Up top, you should see a "Brush" selector tool. If you don't, go to the Window menu and choose Brushes. Scroll way down and pick an irregular brush shape that looks like an ink splat!

  8. In the masking layer -- make sure you're in the masking layer, not the photo! -- start doodling. As you draw, the photo will appear wherever you're drawing. Don't like it? Switch to the erase and erase, or use Undo and try again.
  9. For fine-tuning, I then switched to the Smudge Tool, which looks like a finger, and went whoosh-whoosh-whoosh horizontally over the edges of my mask, in the same direction as the ripples of the water. I was smearing the edges of the mask horizontally to make it more wispy.
  10. Use the Blur Filter, smudge, draw dots, or try oddly-shaped brushes along the edges of the mask to get an interesting border.

As you can see, this can be a powerful technique for pulling out someone's head and shoulders from a background, making a soft-edged frame, or many other tricks. Now that you've got the basic idea, experiment!

Clipping Mask Trick: Put It on a Different Background

Now You're Getting It!

So, you've got this two-layer document with an image and its clipping mask. What do you do with it? Well, first, SAVE it. This will save a raw .psd or Photoshop file with all the layers you've created.

Then choose "Save for Web" and pick jpg format, and Photoshop automatically paints the background white. With png (memory-intensive, but sharp) and gif (quick-loading, but limited colors), you can opt to have the background transparent so that the webpage background shows through -- or turn off transparency and Photoshop makes the background white.

Or add your OWN background in Photoshop!

This is easy-peasy. Once you've got a clipping mask set up...

To add a background from an existing photo

1. Copy and paste another photo.

2. In your document with the image + clipping mask, select the top layer, the image.

3. PASTE the new layer, which will be the background.

4. Drag the background layer down, down, down until it's under the other two.

Voila (I grabbed the background from a photo with a cloudy gray-and-white sky):

Want to draw your own background? Click the notebook icon at the lower right on the Layers Palette to create a new blank layer. Draw on it, use the paint bucket with a gradient fill, or add whatever you like.

Just move it down in the layers palette so it's below the clipping mask layer when you're done. Be sure NOT to get it between the clipping mask layer and the image being masked, or your background will be masked too!

To get this, I...

  1. copied the grass from my egret photo and pasted it into a new document
  2. made a text layer that said "Think Green" as its clipping mask
  3. Pasted a random desktop wallpaper into a layer below the other two
  4. Changed the background layer's HUE in the "Image >...Adjustments" menu so it was a matching green
  5. added a few special effects to the text layer (Drop Shadow, Inner Shadow, Stroke to make the yellow outline -- picking up a color from the background)

I hope you found this tutorial useful! Please consider tweeting, sharing it with friends, or bookmarking it!

More by this Author

Guestbook 18 comments

KarenHC profile image

KarenHC 6 years ago from U.S.

This is great information! I use PhotoShop Elements, so I'll have to see how much of this I can use -- some I'm sure! And I see you have a few other PhotoShop lenses. I'll have a fun few hours trying things out :-)

mythphile profile image

mythphile 6 years ago from California Author

@KarenHC: I know Elements has basic masking. I hope these are useful!

I've decided to start making Photoshop tricks and tutorial lenses. I'm no expert, but I've been using Photoshop since 1993 (good grief), so I have picked up a set of tricks I use to make web graphics. :)

indigoj profile image

indigoj 6 years ago from UK

I have been wanting to learn to do this, so I'm delighted to come across a lens that can teach me Photoshop masking techniques in such a clear way and helpful way.

mythphile profile image

mythphile 6 years ago from California Author

@indigoj: There's one more masking demo I should do -- how to get a person extracted out of a background! That takes a little more explaining, but it's using the same techniques as the freehand doodle and the fuzzy oval mask -- you make a layer above the person (it helps to lower the masking layer's transparency slightly while you're working on it), draw over where the person is, get the mask to cover the person neatly, then when you're satisfied you've got a good silhouette, move the masking layer below the photo layer, alt-click, and restore the clipping mask to full opacity.

Which is a mouthful. I need to show it. It's a little harder because you actually have to draw by hand, but it's still not too bad, since you can keep editing the mask until it looks right without worrying about erasing something on the original photo.

reasonablerobby 6 years ago

Just like Wordcustard I've had no idea where to start doing this so this is brilliant. Should help with my Zazzle product designs and the photos I use, just using photos as they are looks so plain and boring. Thank you!

missiemiles 5 years ago

I have been looking ALL OVER the web for something as easy and comprehensive as your article on masking! This was a stroke of luck and wonderful information---please keeps these coming!

Thank you!

Joy Neasley profile image

Joy Neasley 5 years ago from Nashville, TN

Wow...I am learning a lot of photoshop tips on Squidoo lately. Great lens.

anonymous 5 years ago

These are some great Photoshop tips. Added to my Squidoo Lens Customization Featured Lenses!

deyanis profile image

deyanis 5 years ago from Oz

I had no idea that it's very easy to create mask on Photoshop. I usually download the photoshop mask templates. You have tempted me to create one & experiment with it myself. Great tutorial. --- Blessed ---

anonymous 5 years ago

Thank you SO much!! This has been haunting me for weeks and this was the only tutorial that I could find that made sense!!

bikerministry profile image

bikerministry 5 years ago

Awesome lens. I love the way you put the print screens right there for the step-by-step. Thank you for all your hard work. Blessings.

WhitePineLane 4 years ago

This is really, really, really, really helpful! Thank you so much for sharing!

iMorpheus 4 years ago

Excellent work! Thanks a lot for creating this useful lens :-)

xmen88 4 years ago

Wonderful stuff.

caffimages profile image

caffimages 4 years ago

Thank you so much. Despite using Photoshop to edit my photos for a long time this lens has given me just the information I've been searching for. I'm a photographer, but not a very good Techi person! Thanks again.

John Dyhouse profile image

John Dyhouse 4 years ago from UK

thank you - masks have up until now bwwn a mystery to me.

anonymous 3 years ago

Thank you for this article, it was exactly what I was looking for!

visit2goa 2 years ago


    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.

    Click to Rate This Article