PDA

View Full Version : How to flawlessly remove background from images


scarlet-rain
11th September 2007, 12:20 AM
The pen tool is a very valuable tool and is used mostly in vector art. However, it can also be used to create selections, e.g. when you want to remove the background from an image. The pen tool differs from the magic wand or lasso tool in that it allows you to make a more precise, smooth selection which will blend in better with your new background. The pen tool is also very useful in creating smooth curves with little effort.

I encourage you to attempt each step as you read through this tutorial as the pen tool can be difficult to get the hang of, and in my experience, the best way to understand the steps properly is to try it for yourself.

1. Finding the Pen Tool: The pen tool icon is located below the solid black arrow, near the T for type tool (See image below).

http://www.golivewire.com/images/ib/152028_f.jpg

2. Turning off Fill: I find it easier to fill in my selected area (if I choose to fill it with a colour) when I’ve finished making a selection, rather than as I’m making the selection, as it can obstruct your view of the image you are working with. To turn off this option, select the path only option in the top panel (see image below). If you’re new to the pen tool you might want to do this too.

http://www.golivewire.com/images/ib/152029_f.jpg

3. Making a Point: Click and drag anywhere along the edge of your image. You’ll notice that a little square dot will appear with lines extending from it. This square dot is called a point. The lines that extend from the point are called handles. Move these handles by holding ctrl and clicking on their diamond-shaped ends to change the shape of the curve.

4. Working with handles: Make sure the handles of your points are almost parallel with the outline of your image (see first image below). If the outline starts to curve, pull the handle away from the outline. If the curve is wide and not very high, your handle will need to be longer, with a very slight angle (see second image below). If the curve is narrow and high, your handle will need to be shorter with a sharper angle (see third image below). Experiment a bit with the handles and you’ll see what I mean.

http://www.golivewire.com/images/ib/152033_f.jpg http://www.golivewire.com/images/ib/152030_f.jpg http://www.golivewire.com/images/ib/152031_f.jpg

If the outline of your image features a sharp turn, e.g. the outline of a building, you will need to place a point around or on the corner of the turn. Before making another point, hold the alt key and click and drag from the point (see image below). This will make the handles of that point behave independently, instead of as one straight line. Continue making points and modifying handles in this way to draw a rough outline around your subject.

http://www.golivewire.com/images/ib/152032_f.jpg

5. Modifying the path: Once the selection is completed and the points are joined, they have been closed to make a path. Try to avoid having clusters of points within close proximity of each other, because your selection may end up jagged. When deciding whether a point is needed, consider whether the outline of the object you are tracing around has and curves or sharp turns at or near that point. If not, it’s usually wise to delete it. Delete unnecessary points and use the handles instead. If you click away from the path before the path has been closed, you will need to pick up the path again by ctrl + clicking on either the starting or ending point on the path to continue making the path from that point.

To show the handles of a point, ctrl + click on a point. You can also release the Ctrl button and click on a point to delete it. Do the same thing on a part of the line that does not contain a point to add a point.

6. From Path to Selection: The selection you have created using the pen tool is called a path. Once you are happy with your selection, right-click near the path and select ‘Make selection’.

A dialogue box will pop up, asking you if you want to anti-alias and feather the selection. Always select anti-aliased, as this will subtly blend the edges of your selection with the background. If you want a more gradual blend between background and foreground, put a figure in the ‘feather’ box. Start with a low number, like 3-5 pixels, then try experimenting with different levels of feathering.

7. Removing the Background: To remove the background, either delete it using the del key (be sure to select the inverse of the selection first) or hiding it with a layer mask. I advise you to use a layer mask, as it allows you to reveal parts of the image that you hid later on by simply painting on the mask with a white brush. Now all you have to do is find a background and place it underneath the layer you were working on.

http://www.golivewire.com/images/ib/152034_t.jpg (http://www.golivewire.com/images/ib/152034_f.jpg)

Aukiman
11th September 2007, 05:03 PM
awesome tips scarlet :) I love the pen tool too, but I dont have the patience to write up a nice tutorial like that :) well done !

Ausmosis
11th September 2007, 05:58 PM
great tip scarlet.... Thanks for posting!...

Now to get photoshop for my macbook and test this out! :)