Photoshop How-To: Separate a Subject from the Background with a Stroke

Rating: 
Body: 

The makers of the Fanta soft drink are running a multi-part ad campaign that uses an interesting effect that's very easy to achieve:

The white stroke both makes the photos of the women stand out from the background while also tying them into other elements of the design. In this Photoshop tutorial, which works in CS3 through CS5, I'll show you how to create a similar white stroke around photo subjects. You'll get there by using a few selection techniques, masking, and adding some layer stroke styles.

Step 1
Open an image in which the subject is delineated from the background. In the example below, the background is blurrier than the subject, but that’s not mandatory.

©ISTOCKPHOTO/IGOR BALASANOV Step 2
Double-click the Background layer on the Layers panel (go to Windows > Layers if it’s not visible) to unlock it. Click the OK button.

Step 3
Now you need to mask out the background around the model. Make a selection around the subject using one of the many options: the Quick Selection Tool, the Pen tool, etc. The best selection method for you depends on your photo and your expertise. If you'd like selection guidance, watch these video tutorials:

* Throw Photoshop's Magic Wand Out the Window!
* Master Masking with Photoshop's Alpha Channels
* Get to Know Photoshop's Pen Tool
* Make Smooth Selections in Photoshop

Once you've made your selection, you’ll see the "marching ants" around the selected model:

Step 4
You may want to refine the edge a bit so the selection edge is not too distinct. I added a slight feather (Select > Modify > Feather). Next, click the Add Layer Mask button on the bottom of the Layers panel.

Your image should look something like this, with the background masked out:

Step 5
Now you can add a new background. Click the Create New Layer button of the bottom of the Layers panel. Then click-and-drag this new layer below the original layer, so the model’s layer is above the new transparent layer.

Step 6
Select the Gradient Tool from the Tools panel and then choose a color gradient from the Options panel at the top of the screen. I chose the Orange, Yellow, Orange gradient.

Step 7
Click-and-drag across the canvas, making sure the bottom background layer is selected and not the layer the model is on. It should look something like this. Note: hold Shift if you want the gradient to be at a 90-degree angle.

Step 8
Now you need to add that white stroke to the original layer. In the Layers panel, click the layer the model is on and then go to Layer > Layer Style > Stroke. Set the color to white and experiment with the settings for various effects. Here are the settings I used:

Click OK.

Step 9
You’ll notice that there’s a white border around the edge as well. That’s because I added that feathered edge to the selection before adding the mask.

It's easily fixed. In the Layers panel, click the mask -- the box small white-and-black box to the right on the model’s layer. Then select the white area using your tool of choice, make sure that the foreground color on the bottom of the Tools panel is set to black, and press Option-Delete (PC: Alt-Backspace). This masks out those areas. If any spots are left, use the Brush tool to paint black onto the mask where the pixels need to be masked out. Note: To see the actual mask, click on the layer mask while pressing Option (PC: Alt). Click again to return to pixels.

The result should look something like this:

Step 10
To make this look even more like the Fanta ad campaign, let’s add circles to the background. Click the Create New Layer on the Layers panel and click-and-drag the layer to the top of the layers. Then choose the Brush tool, and up in the Options panel, choose an appropriate brush. I chose a circle brush.

Select white as the color and click to the side of the model. Between clicks, try adjusting the Flow on the Options panel and pressing the left and right brackets to resize the brush.

Liked This? Read These!

Layer Styles can provide an ideal way to get the quality, speed, and flexibility that make for successful Photoshop solutions. Read More
Sometimes you need to make it appear that the content of one layer appears both in front of and behind another layer. One example is the Olympic rings. The rings appear to be linked, with... Read More
New panel makes saving Photoshop layers as separate files much faster and easier than before. Read More
Layer Comps -- new in Adobe Photoshop CS -- may well be one of the first great inventions of the 21st century (at least in the digital world). A simple click in the palette to Save New Layer Comp,... Read More