Preparation:
1. Open Your Image: Open the portrait image you want to edit in Photoshop (File > Open).
2. Duplicate the Layer: Duplicate the background layer (the layer containing your image) by pressing `Ctrl/Cmd + J` or by right-clicking the layer in the Layers panel and selecting "Duplicate Layer." This is a good practice to preserve the original image. Label the duplicate layer something like "Portrait Layer" or "Subject Layer."
Using the Magnetic Lasso Tool:
1. Select the Magnetic Lasso Tool: In the Toolbar, locate the Lasso Tool. If you see the regular Lasso Tool or the Polygonal Lasso Tool, click and hold down on the Lasso Tool icon until the menu pops up. Then, select the "Magnetic Lasso Tool."
2. Adjust Tool Settings (Top Menu Bar): Before you start tracing, adjust these settings in the Options bar at the top:
* Width: This determines how far the tool can "see" to find edges. Start with a value between 5 and 20 pixels. Adjust as needed based on the complexity of the edges in your photo. A higher width is useful for well-defined edges, while a lower width is better for softer edges or areas with low contrast.
* Contrast: This setting tells the tool how much contrast it needs to see to latch onto an edge. Start with a value between 10% and 25%. Higher values require more distinct edges.
* Frequency: This controls how often the tool places anchor points along the edge. Higher values (e.g., 60) will place more anchor points, resulting in a more precise selection, but may require more manual adjustments. Lower values (e.g., 5) will place fewer anchor points, making the selection faster, but potentially less accurate. Start with 50-60 if it's a detailed portrait.
* Tablet Pressure for Size: If you're using a graphics tablet, you can check this box to vary the width of the tool based on pen pressure. This can be useful for very fine-tuned selections.
* Feather (Optional): Leave this at 0 pixels for now. We'll adjust this later if needed to soften the edge of the selection.
3. Start Tracing: Carefully click a starting point on the edge of the subject you want to isolate. Then, slowly move the Magnetic Lasso Tool along the edge. You don't need to click continuously; the tool will automatically find and stick to the edge.
4. Correcting the Selection:
* If the Tool Goes Astray: If the tool jumps to the wrong edge, don't panic! Press the `Delete` or `Backspace` key to remove the last anchor point(s). Then, move the cursor back to where you went wrong and continue tracing. You may need to click manually in difficult areas where the edge is not well-defined.
* Adding Points Manually: If the tool isn't catching an edge, click manually to add an anchor point at that spot.
* Closing the Selection: When you reach the starting point, the cursor will change to include a small circle. Click on the starting point to close the selection.
5. Refine Edge (Highly Recommended):
* Go to `Select > Select and Mask...` This is the best way to refine the selection, especially around hair.
* View Mode: Choose a view mode that helps you see the edge clearly (Overlay, On Black, On White).
* Edge Detection - Radius: Increase the "Radius" slightly to help the tool find edges that are fuzzy (like hair). Start with a small value like 1-3 pixels and increase as needed.
* Global Refinements:
* Smooth: Increases smoothness. Use sparingly (start with 0, go up to 1 or 2 if needed).
* Feather: Softens the edge of the selection. Add a small feather (0.5 - 1 pixel) to prevent a harsh edge. This is more important than the feather setting in the initial tool options.
* Contrast: Sharpens the edge. Use this to help make the edge more defined.
* Shift Edge: Shift the edge inward or outward. A negative value shrinks the selection (useful if the selection is cutting into the subject). A positive value expands the selection. Usually, you want to use a slightly negative value.
* Decontaminate Colors: If you see a color fringe around the subject (especially if the background was a different color), check "Decontaminate Colors." Adjust the "Amount" slider to remove the fringe.
* Output To: Choose "New Layer with Layer Mask" from the dropdown menu. This creates a new layer with a mask based on your selection. Click "OK."
Blurring the Background:
1. Select the Layer Mask: In the Layers panel, click on the layer mask thumbnail associated with the "Portrait Layer". The mask is the black and white thumbnail next to the color thumbnail for the layer.
2. Invert the Selection: You need to select the background area *outside* the portrait. Go to `Select > Inverse`. This inverts the selection, selecting everything *except* the subject.
3. Blur the Background:
* Go to `Filter > Blur > Gaussian Blur`.
* Adjust the "Radius" slider to control the amount of blur. Higher values create a stronger blur. Experiment to find a blur level that you like. Be careful not to overdo it! A subtle blur often looks more realistic. Look at other images to see how much blur is typical for the depth of field you're trying to emulate.
* Click "OK."
Fine-Tuning (Optional):
* Adjust Mask Edge: If you see any harsh edges around the subject after blurring, you can further refine the layer mask:
* Click on the layer mask thumbnail again.
* Use the Brush tool (set to black to hide, white to reveal) to paint on the mask. Use a soft brush with low opacity to blend the edges.
* Add a Gradient Blur (More Advanced): Instead of using a uniform Gaussian Blur, you can use a "Field Blur" or "Iris Blur" filter (under `Filter > Blur Gallery`) to simulate a more realistic depth of field effect where the blur amount varies depending on the distance from the focal point. These filters allow you to define the focal point and blur more gradually.
Important Considerations:
* Accuracy is Key: The success of this technique depends heavily on the accuracy of your selection. Take your time and carefully trace the subject.
* Hair: Hair is notoriously difficult to select. The "Select and Mask..." workspace is *essential* for dealing with hair.
* Edges: Pay close attention to the edges of the subject. A subtle feather and good edge refinement can make a big difference.
* Subtlety: Don't overdo the blur. A subtle blur often looks more realistic than a heavy blur. Consider the natural depth of field you are trying to mimic.
* Non-Destructive Editing: Working with layer masks is non-destructive. You can always go back and adjust the mask or the blur settings without affecting the original image.
By following these steps and practicing, you can effectively blur the background of portraits in Photoshop using the Magnetic Lasso Tool, creating professional-looking results. Good luck!