Skip to content

Tutorial: Extracting Images in Photoshop

December 5, 2007

Normally, I’m a painter, however now and then I do some graphic design and have to do some photo-manipulation. One of the things that separates a good photo manip from a bad one is how cleanly the image was extracted from the original photo before being inserted into the new one. In Photoshop there are several ways to do this. You can select things painstakingly with the lasso tool. You can carefully erase or mask around the image. Or, if you’re aware of it, you can let Photoshop do most of the work for you.



So here I have a really lovely image from the incomparable Elandria. The pose is great, the lighting is good, costume and props are spot on. The photo resolution could be a little better, but we’re going to downsize it a little so that won’t matter so much. The only bad thing about this: the background. She’s standing on a picnic table, which would be wonderful if we wanted her to be pointing the way toward lunch, but not so good for a dramatic piece. However, since this is a stock image, we’re going to be cutting her out of there anyway and giving her a much more suitable backdrop to pose so dramatically in. In this case, a beautiful cloudy Scottish countryside from Patronus_Stock.

The first thing you want to do, with the image already open in Photoshop, is find the Extract Filter. I’m not sure why this is classified with the filters, but it is. Simply click on Filters>Extract, which will open up a new and probably unfamiliar window. Now, before we continue, I need to give you some bad news: Your computer is blind. It’s okay, it was born that way, and has come up with a rather complicated system to be able to “see” color. What our eyes perceive as varying shades of red or blue or green, the computer sees as sets of numbers. While we might be able to say “that’s light blue” or “that’s dark blue” the computer has to try to distinguish how similar the numbers are. This can sometimes cause difficulties when selecting things with the magnetic lasso, and it can also cause problems here, too, so it’s better to be aware of it.On the left hand side of this window are our tools. The first button is your edge highlighter, the second is a fill paintcan. You won’t need the eyedropper tool much, so I tend to ignore it, but you will need the one beneath it later. The bottom two are your magnifying glass and move tools, which you’ll want to use quite a bit as we go.On the right hand side you’ve got your settings. Make sure you’ve got the Highlight and the Fill colors set to different colors (blue and green here). They’re not actually going to be coloring your image, so you can set them to whatever colors you like. If your image has a lot of well defined areas (like this one), you’ll want to check the box next to “smart highlighting.” This tells the computer to automatically follow defined edges of “color.”


Pick a portion of your image and zoom in. Set the highlighter tool size so that if you place it on the edge of your image, it overlaps into the part you want to keep by a few pixels, and overlaps onto the background a few pixels. Then begin tracing around the edge of the part of the image you want to extract. As long as you stick fairly close to the edge, the smart highlighting will follow along it without you having to be too exact.


Things will get a little funny around soft edges, like hair. When you’re working around the hair, color over any loose fringes you want to keep. Use the eraser tool to clean up any places where your brush got a little wonky.



Once you’ve outlined everything you want to keep (make sure to get those weird little holes and gaps, too, like the spaces between the flag and the pole, or the hole between her arm and her body), use the fill tool to color in the part you want to keep. Basically, what you’re telling the computer with the green highlighter is: This is the edge of the image, keep any pixels that match the colors closest to the fill and get rid of the rest. With the fill tool you’re telling it “I want to keep this.”Click Preview. What you should see is your image “cut out” of it’s background. Now, remember what I said about the computer getting confused? It’s going to sometimes get rid of some pixels you wanted, and leave some you didn’t. That’s where the clean up brushes come in.


The top clean up brush (not sure if it has a name) can make the pixels either transparent or opaque. To “erase” some of those messy edges, simply paint over them. However, if you want to make an edge come back (like the bottom of her sleeve), hold down the Alt key (option on a Mac) while painting to make it visible again. Go back around the edge of your image and clean up any problem areas. For messy areas, like her hair, use a smaller brush and “paint” in lines that are opaque that follow the flow of her hair.When you’re finished the extracted image should look much cleaner in your preview window. If everything is good, hit okay to accept the extraction and go back to your main Photoshop window.


In Photoshop, you’ll see that the computer has deleted all of the background image, leaving you with a nice (hopefully cleanly cut out) figure which can now be dropped into its new home. If you’re not sure how clean your edges are, make a new layer underneath the extracted image, and fill it with a flat color. You might still need to erase a few crumbs, but for the most part, Photoshop has done the hard work for you. Now when you move the image into it’s new background, your edges should be clear, and you’ll still retain some of those hard to cut out areas like hair or blurred edges. Final image, after I’ve applied filters and effects, and painted over a couple of spots):Close up:Credits:
Stand Before the Banner used with permission from Elandria/Caustic-Stock at DeviantArt.com
St. Abb’s Head used with permission from Patronus_Stock at DeviantArt.comTutorials are copyrighted as well. Please do not repost or reprint without my permission. Contact me at mercuralis@bynkii.com for information.

Advertisements
18 Comments leave one →
  1. December 5, 2007 9:28 am

    O_O I do not know these nifty tools…
    But that picture is definitely in my TO PAINT list.

  2. December 5, 2007 4:59 pm

    You know I hardly ever use this feature of photoshop >.< though I know I should. Its an excellent tutorial sweety!!

    Thanks again for using my stock!! *hug*

    Lanny

  3. kelli (patronus-light/stock) permalink
    December 7, 2007 5:40 pm

    the tutorial turned out great–i’m glad my stock could help you out with this. 🙂

  4. Kola permalink
    December 12, 2007 10:16 pm

    Thanks so much for this detailed extracting tutorial. I like it very much. Does the job. However, when I try to place image on anther object, I am still getting the rectangular black along with the new image – even though the background is gone. How do I transfer just the image without the blank area, please.
    -Thomas

  5. mercuralis permalink
    December 12, 2007 10:28 pm

    Hey Thomas… I’m not sure why you’re still picking up the background. If you follow the steps above it should delete it completely. Then you can drag the cut out image onto a new object and it should come without the background.

  6. Carly permalink
    December 15, 2007 1:05 am

    Hi

    How do you actually gt the extracted image onto another background?

  7. mercuralis permalink
    December 15, 2007 3:59 am

    Hi Carly.

    You can either choose select all on the layer containing the extracted image, copy it and paste it on top of the new background image. You could copy the new background to a layer beneath the extracted image. OR you could click on the extracted image layer in the layer palette and drag it over on top of the new background.

  8. April 3, 2008 8:39 am

    Hello!

    I need to cut out an image of a sapphire from its photo, so that I could use only the sapphire (without the background, which I need to “not exist” or to be transparent) in button making and to insert in site pages that I am making with Seamonkey.

    I have Photoshop, but I don’t know how to do what I described. And I don’t know how to save an image in Photoshop so it will be readable by other programs and seeable by Explorer.

    Please, please, please help me!!!

    Neta

  9. June 3, 2008 8:04 pm

    Oh… The extract tool always leave some halos around the hair that cannot be reomved, as far as I know…

  10. January 17, 2009 11:11 pm

    […]Oh… The extract tool always leave some halos around the hair that cannot be reomved, as far as I know…[…]

    I’ve noticed, that it makes a nice look, when you use 1px pencil, 35% opacity (not fill) and repeatedly brush over a mask to make the image more transparent or opaque…

  11. Kim permalink
    July 13, 2010 10:01 pm

    You are awesome! This is so much nicer than the pen tool! And easier. Thank you so much for sharing this little secret!

  12. November 17, 2010 6:09 am

    i really like to color my hair and i would love to try different hair colors specially auburn *`.

  13. kosai permalink
    January 25, 2011 12:21 pm

    thank for everythings.

  14. Selvakumar.K permalink
    April 25, 2011 2:19 am

    Pls send the Photoshop Tips & Tutorial daily

    Regards
    Selvakumar.K

  15. January 5, 2012 3:25 am

    Wonderful beat ! I would like to apprentice while you amend your site, how can i subscribe for a blog website? The account helped me a acceptable dealI had been tiny bit acquainted of this your broadcast provided bright clear idea

Trackbacks

  1. Rolling Stone’s Albums of the 1980s » Blog Archive » Tutorial: Extracting Images in Photoshop
  2. PiRatoR.NET Wallpaper =D - Piяator Community
  3. 10 Useful Photoshop Image Extraction Tutorials - Creative Can

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: