Photoshop For Beginners: 6 techniques to extract anything from its background

Photoshop For Beginners: 6 techniques to extract anything from its background

This is the second of a series of tutorials thought for Photoshop beginners. I’ll explain in depth those features that can result difficult to understand for a newbi. Today I’ll show you 6 techniques you can use to extract a person/object from its background. From now on extraction won’t have secrets for you!


Extraction is one of the worst enemies for those who start using Photoshop. While it’s simple to extract a geometric figure from its background, it is difficult to do the same with a tree or a blonde flowing hair model. There is not a unique approach to this topic, but several techniques in according with the nature of the object to be extracted. Here are 7 extraction techniques that will allow you to isolate and extract almost anything.

Get unlimited access to 2500+ design resources for only $7! Take a tour or sign-up now.

Do you want to learn Photoshop basics with simple yet effective tutorials? Don’t lose any article of this series. Subscribe to our RSS or follow us on Twitter!

How to:

Before we start: in the following exercises I take for grant you’ll unlock the background layer when you open a new image in Photoshop before start the exercise. To unlock the background layer double click on it in the layers window (generally placed in the bottom-right) and hit ok in the window that appears.

For mac users: alt=options. ctrl=cmd.

Exercise 1: How to extract simple form objects

Objects with simple forms are easy to be extracted. Let’s suppose we want to remove this screw head from its background.

nail in photoshop

Open the screw image in Photoshop. Grab the Elliptical Marquee Tool from the tool bar on the left. Since the form of the object to extract is a circle, we will use a circle selection to extract it. But before start using the selection tool we need to highlight the center of the screw. Photoshop grid can help us.  Go to view>Show>Grid

show the grid

Now that it’s easier to find the center of the screw head, grab the elliptical marquee tool, hold down alt and shift, left click on the center of the screw and drag until you select the entire object.

Why to press shift? Shift key is often used in Photoshop to maintain constant proportions. If you want to re-size an object without modifying its proportions, you have to press shift while resizing it. In this case if you want a circle you have to pres shift, while you don’t have to press shift in case you want an ellipse .

Why to press alt? In this way the first click coincides with the center of the circle. Instead if you don’t hold down “Alt”, the first click coincides with a point of the circumference.

select the nail

Once you have your screw selected, inverse the selection by going to Select>Inverse (or press shift+ctrl+I) and hit delete. You have so removed the background.

Note: in case you don’t see the transparent background, but still a white background, it means you haven’t unlocked the background layer. When you open an image in Photoshop this image is by default locked. To unlock it double click on the image layer (into the layer window – bottom right) and hit ok in the window that appears.

Note 2: If you want to save an image with a transparent background, you have to choose .png format.

nail extracted

Now that you have your screw extracted, you can use it for your compositions, as I did in this type treatment tutorial:

wooden type treatment

But what if you have to extract an object with a simple yet irregular form? In this case you have to use the Pen tool.  The pen tool allows you to create any kind of form and selection. Select this tool from the tool bar and set it in “paths mode”. We will use the pen to extract an apple.

Don’t you know how the pen tool work? Take a look at the first tutorial for this matter.

pen tool in path mode

Use the pen tool to trace the outline of the apple:

trace the outline of the apple

Once you’ve finished, press ctrl+enter to activate the selection tool, shift+ctrl+I to inverse the selection and  finally hit delete.

apple extracted

Exercise 2: How to extract a person

To extract a person is less simple then to isolate an apple. For this exercise I’m going to use this image of a model.

model image

What is the best tool to extract this beautiful girl? The pen tool. What’s the difference with the previous exercise? You shall be moooooore patient because you need moooore anchor points. Grab the pen tool and zoom on the image. The more you zoom, more precisely will be your selection. Then start tracing the outline of the girl as in the previous exercise with the apple.

Tip: press alt+scroll the mouse wheel to zoom in/out

use the pen tool to trace

Once you’ve traced the outline of the model, use the pen tool in “substract area mode” to trace those inner parts that shall be removed.

remove inner parts from selection

Here is the path at the end of the process:

end path

As in the previous exercise, press ctrl+enter to activate the selection. But in order to make our selection more precise (persons edges are more complex than apple ones), with the selection still active press the “refine edge” button in the options bar. Refine Edge tool is very intuitive to use. You have different options to manage (radius, contrast, smooth etc) and the live preview of your  selection. When you’re satisfied hit ok.

refine edge

The last step is to inverse selection (shift+ctrl+I) and hit delete to remove the background.

extraction completed

Exercise 3: How to extract dark objects from white backgrounds

For this exercise I’m going to use this image of a leaf. Notice the strong contrast between the leaf color and the white background. When you want to extract an object which strongly contrasts with its background color, the Extract Filter is the best choice.

leaf

This method is super easy. Go to Filter>Extract. The leaf will appear into a new window. The first tool on the left, the “edger highlighter tool”, shall be used to highlight the edges of the areas to be retained.

Note: In Photoshop CS3 extract filter is a default plugin. If you are using CS4 version, you can download it for free here if you are a mac user. Or here if you have Windows.

highlight the edges

Use the Fill tool to fill the areas you want to retain

fill tool

Click on preview to see if you’ve correctly extracted the leaf:

preview of the selection

Use the cleanup tool and the edge touchup tool to refine your selection:

refine the selection

And here is the final result:

final result

Exercise 4: How to extract clouds and flames

If you have always wondered how to extract clouds and flames from their backgrounds, the following exercise is for you. Download the image of a flame and open t in Photoshop.

open flame img in photoshop

Go to the channels window (Window>Channels). Here ctrl+click con the red channel. You should see a selection active on your image.

Why red channel? Choose the channel in according with the image. Channels having more contrasts will allow you to detect less pixels. Channels with less contrast will detect more pixels.

select flames

Now you can copy (ctrl+C) and paste (ctrl+V) your flames into another image, as I did in this tutorial written for DesignInstruct

vivid flaming skull composition

Exercise 5: How to extract hair using channels

Hair extraction is one of the most difficult Photoshop exercises. I’m going to show you how to use channels to extract this girl’s hair:

hair

In the channels window (Window>Channels) you can see 4 channels: RGB, Red,Green and Blue. We need to work with the channel with the strongest contrast between model hair and white background. In this case the Blue channel. Duplicate it by dragging it to the “create new layer channel” button.

create a new channel

Now take in mind: black areas are the ones we want to retain, while white areas the ones we want to remove. The first thing to do is to increase a little bit contrasts using curves. Press ctrl+M to activate curves and make a kind of “S” as shown in the screenshot below:

curves

Secondly use the pen tool to trace the outline of girl’s arms and face:

use the pen tool to trace girl's outline

Make sure to have black (#000000) as foreground color. Press ctrl+Enter to activate the selection and hit alt+delete to fill selection with black. Finally go to Select>Deselect (or press ctrl+D).

tip: Alt+delete: fill with foreground color. Ctrl+delete: fill using background color.

fill selection with black

Our preparation to selection is almost complete. Remember: black areas will be selected while white ones removed. We still have to cover with black some white areas within hair. Select the brush tool (B), choose a soft mechanical brush (hardness 0%) and set blending mode to overlay. With this brush start painting the last white areas we want to remove.

Why blending mode to overlay? In this way we won’t affect white background but only gray areas

use a brush

The last step: increase again contrasts using levels. Press ctrl+L to activate level adjustment. Then move the left arrow to 20.

levels

Ok we can see the end ;-). Ctrl+click on the blue copy channel to select black area. Then click on the RGB layer to return to our starting colored image. Inverse the selection and hit delete.

extraction completed

Let’s verify if the method works well. Create a new layer below and fill it with green using the Paint Bucket Tool (G).

add a green background

As you can notice, selection is good but not perfect. We have some white parts at the end of hair strands. How to eliminate them? Simply select the girl’s layer and go to Layer>Matting>Remove white matting.

Here is the final result:

final result

Exercise 6: How to extract furry animals

Have you ever desired to put a nice sweet rabbit into one of your works (maybe no…)? Anyway I’m going to explain how to extract furry animals from their background without lose a single fur. For this exercise I’ll use this image of a bunny.

bunny

To extract hair/fur is not simple. But there is a trick I gonna show you. Grab the pen tool in paths mode and start tracing rabbit’s outline. We will add fur later.

trace the outline with the pen tool

As we made in the previous tutorials, once we have created the path using the pen tool we can switch to the selection by pressing ctrl+Enter. Then inverse the selection (shift+ctrl+I) and hit delete.

rabbit extracted

The rabbit is too sharp without its fur. But we can create them using the Smudge tool. Firstly create a new layer and fill it with green so it won’t be difficult to see bunny’s fur.

add a green background

Select rabbit’s layer by clicking on it in the layers window. Grab the smudge tool and choose a soft 5px brush with hardness 0%  and strenght 80%.

select the smudge tool

With the smudge tool start painting from the rabbit edges to the outside as if you’d like to create its fur. For this step the best would be to do with a graphic tablet. Anyway you can obtain a nice result with your mouse too.

use the smudge tool to create animal fur

After lots of patience and brushes of different sizes and strength, here is the final result.

rabbit extracted finish

Extraction plugins

In case you need to extract complex objects like trees, or you want to preserve semi-transparencies, you could think to use a premium plugin. Don’t forget that Photoshop possibilities can be extended with professional problems-solving plugins. Here are 3 plugins that can help you to extract intricate objects:

Topaz ReMask

topaz re-mask

“Topaz ReMask is specifically engineered to supercharge the masking and extraction workflow for photographers and designers within Photoshop. Other masking tools – both within Photoshop and other third party filters – require intricate brushing, sampling, and refining for a detailed mask. Topaz ReMask, on the other hand, does all the heavy lifting while requiring a minimum of user input.”

Price:$69

Go to download page

Mask Pro 4

mask pro 4

“For removing unwanted backgrounds, Mask Pro 4.1 is the Photoshop plugin recommended by Advanced Photoshop magazine. Mask Pro 4.1 allows you to cut out a subject from the background by assigning keep and drop colors and simply painting away the background.”

Price: $159,95

Go to download page

Fluid Mask 3

fluid mask 3

“Fluid Mask™ 3 instantly shows key edges in an image and provides comprehensive easy to use tools that work with difficult to see edges and tricky areas like trees & latices.”

Price: $149

Go to download page

Related Posts

high quality vectors

2500+ premium design resources for only $7!

We do the best to provide high-quality products that you can use in your commercial projects.
You bet!

take a tour

Sebastiano

Howdy! I'm a self taught graphic designer who loves to create amazing stuff using every kind of media. I'm currently living and working in Italy.

62 Comments

(+add yours)
  1. Great Tutorial..very helpful for the beginners..thanks for the post…

  2. Billy So

    Another great tutorial!

  3. frenchfriess

    first tuto photo is a screw, not a nail..

    • my mistake

    • da

      Kind of not the point.

  4. Thanks for such a lucid tutorial. I will definitely use these methods for designing my blog logo.
    .-= Abhishek´s last blog ..Google Movie Search with Geolocation =-.

  5. Great tutorial, very helpful. Thanks for sharing.

  6. Great tutorial, thanks!

  7. Great Tutorial! When first learning photoshop, accurate extraction is one of the hardest things to learn, it certainly took me a while when I was first learning!

  8. Ah ha!! Just what I’ve been looking for, thank you for your time and efforts in putting together this essential piece of photoshop gold. Extraction is usually my biggest nightmare.

  9. pariah

    photoshopped

  10. riz

    how about an extraction tutorial with a complex background, not using the pen tool.

  11. This is great for beginners. I think like @Riz said, you should also make a more advanced one with a complex background.

    But for beginners, this is perfect. Thanks!

  12. Thanks a lot for sharing such a valuable information. I like your tutorial very much, it’s easy to follow.
    Keep blogging.
    .-= Nicholas Norton´s last blog ..Tweetomatic Profiteer The Highest Profitable Twitter Money Maker System =-.

  13. Great job on the tutorials! Will pass it along…
    .-= JBWEBDEV´s last blog ..Hiring a Freelance Web Developer =-.

  14. Great overview! Thanks for sharing.
    .-= Marius´s last blog ..Mixtape-Tipp: ArtOfficial – The Payback =-.

  15. Very helpful photoshop techniques :-) Thanks for sharing them. I have added your link on my blog.
    .-= Deepika´s last blog ..Remove background from an image – Photoshop Techniques =-.

  16. Great tutorial, the easiest and proper hair cut, but in my Photoshop I do not have the option Layer, Matting, how do I fix?

  17. Hanne

    Fantastic Tut! While being far far far from a pro, I’ve used photoshop a lot and never got the grip on extracting hair. Thanks a lot!

  18. I agree with what a lot of people are saying – hair extraction is extremely difficult! I’ve always had trouble with it. I’ll try your tips. Thanks!

  19. brilliant round up…
    .-= Harsha M V´s last blog ..Enable Gzip on Apache Server to Speed up your Website load time =-.

  20. One of the greatest round-up’s I’ve read! Working in the commercial printing industry this is the #1 mistake we see. Keep up the great work!

  21. Hi, these are great and I just attempted the remove the hair one but the layer>matting>remove white matting isn’t taking the white out, is there any other way to fix that?

    • Heather,
      Try using the burn tool (O) to darken white parts

  22. Great contribution. I’ve never tried using channels, seems very useful!

  23. Thanks for the tutorial. These are great instructions on how to extract. Very easy to follow and effective.

  24. Great tutorial, not only for beginners but a great refresher too!

    • This introduces a pealisngly rational point of view.

  25. Nick

    Good tutorial. I must point out that the first set works with a screw, not a nail :P

  26. nice tut…..but for the life of me, I can’t find the ‘substract’ mode :P

  27. artykoko

    well.. i cant find the refine edge option :(…

    • Hi mate,
      In the article is explained where to download it

  28. Ola

    I learned much from your tutorial, Thank U & good luck.

  29. thank you nice tutorials

  30. wiccan

    Sebastiano, you rock but i am worse than a dummie, and you did not place an option on

    how to extract a text from a background?? i have this logo text on a white BG and i wanted to remove it to place it in a photo as a watermark. and i am using Photoshop CS2 :( can you help asap? thank you:) i could not find where in the panel are the Channels??? sorry :(

    • Hi wiccan,

      To extract the text you can use the pen tool (as shown with the apple in exercise 1). Or, if the text is black and the background white, you can select the white area with the magic wand tool and hit delete to remove it

  31. Sal

    After I completely select the object with the pen tool, I cannot select the inverse (shift+ctrl+I does nothing, and Select>Inverse is grayed out so I cannot select it. Any ideas why? Thanks

    • Hi Sal,

      After traced the object with the pen tool, click ctrl+enter to activate the selection, then you can invert it (shift+ctrl+I)

  32. struts

    I finally did my “filled circle with transparent background” (*sigh*) after you tutorial but my photoshop is 7.0 and i dont have the .png format option to save it…only jpg, psd, pdd, eps, pict, raw, scitex, tiff o_0…i tried to put the file on my server and rename it to .png but it didn’t work. Can you give me hand on that pls? thanks!

    • Hi,

      Try saving in gif format

      • struts

        As i mentioned, there’s no gif format option in photoshop for my version 7.0…i tried to rename as gif from the server but no image is shown…the image shows a transparent background in photoshop but when i transfer to the server a white background is shown…

  33. Peter Karsai

    Thanks for the great tutorials!

    Is it possible to use the Magnetic Lasso Tool for making the selection instead of using the pen tool? Or maybe it isn’t accurate enough?

    • Peter,

      It depends by the object you want to cut out. With complex objects the pen tool is the most accurate solution (even if the most boring, I know )

      • Peter Karsai

        Thanks!

  34. Pao

    Great tutorial!

  35. Megan

    That’s a girl, not a lady in your example. Rabbits don’t have hair. They have fur. Fur doesn’t keep growing. Hair does keep growing. And since you know that’s a screw head and not a nail head, why don’t you change it in the article, so that other people who are learning English don’t make the same mistakes you are making. This is just painful and confusing to read for English speakers, even the ones who think that they should be polite and not write how terrible your language is. Write in Italian next time.

    • That’s why we have now hired a blog editor

  36. begginer

    Hi thanks for good tutorial .I need help for extracting hair.In the excercise after I traced the girl’s arm & face when I activate the selection tool it only select outline of arms not inner & out together.wher is my problem .please help

    • Hi,

      It’s important to close the path. After closed it, press ctrl+Enter to activate the selection tool. In case the selection is wrong (not the inner but the external part is selected), press Shift+ctrl+I to invert the selection

  37. Jagzy

    Hi, Sebastiano

    Thanks for sharing your Knowledge about extracting pictures out from their background. The tutorials was just so help for beginners in learning techniques in extracting photos…I appreciate you for that..bro

    Great work
    God Bless.

  38. Absolutely wonderful, and most sincerely appreciated. I thought I was pretty knowledgeable about extraction techniques, but you showed me I still have much to learn.

    Many thanks, and don’t worry about your English, it’s fine. : )

  39. Kelsi

    I am trying to do exercise 5: Hair, and it is all good until I get to…

    “Ok we can see the end ;-). Ctrl+click on the blue copy channel to select black area. Then click on the RGB layer to return to our starting colored image. Inverse the selection and hit delete”…

    when I press del the FILL box pops up, instead of simply deleting so that I am left with the checker background. Can someone please help?

  40. photoshophive

    Really cool stuff, keep up the good work!

  41. Another extraction tutorial that only covers the easiest possible scenarios. You have to stop using pictures with solid backgrounds if you want to impress me.

  42. Venkatesh

    Great Article Sebastiano!
    Am working with Photoshop for couple of years, but still didn’t know these many techniques.
    Gonna read all your articles. Keep Writing..

    -Venkatx5
    India

  43. Awesome technique! Now, i can easily remove the background from the picture of my crimped-hair friend. :D

  44. RAJENDRA PUNDGE

    Thank you very much for such simplicity. Now I can extract complicated images. Pliz keep blogging.

  45. Big thing explained in simple words. I am thankful

  46. Omada Monday

    Thank you for the explanation, its was so helpful. Thanks so much.

Leave your comment

© Copyright 2010 WeGraphics.net - All rights reserved. Design and code by WeGraphics Team