Step-by-Step Guide:
1. Open Your Image in Photoshop:
* Go to `File > Open` and select your portrait image.
2. Duplicate the Background Layer:
* In the Layers panel (usually on the right), right-click on the "Background" layer and choose "Duplicate Layer..." Name it something like "Subject Layer" or "Layer 1." This protects your original image and allows you to make non-destructive edits.
3. Select the Subject with the Magnetic Lasso Tool:
* Select the Magnetic Lasso Tool from the toolbar (it's usually nested with the Lasso Tool and Polygonal Lasso Tool). If you don't see it, click and hold on the visible Lasso Tool icon to reveal the options, then choose the Magnetic Lasso Tool.
* Adjust Tool Settings: At the top of the Photoshop window, you'll see settings for the Magnetic Lasso Tool. These are important for a good selection:
* Width: This determines how far the lasso will search for an edge. A smaller value (e.g., 5-10 pixels) is good for fine details, while a larger value (e.g., 20-30 pixels) is better for edges with high contrast and few details. Adjust as needed based on your image.
* Contrast: This setting determines how sensitive the lasso is to changes in contrast. A higher contrast value (e.g., 40-60%) works well when there's a sharp difference between the subject and background. Lower the value (e.g., 10-20%) if the contrast is low.
* Frequency: This controls how often the lasso places "fastening points" along the edge. A higher frequency will create a more precise selection but can also result in a more jagged line. Try starting with a value around 50-60 and adjust.
* Start Tracing:
* Click once on the edge of your subject to start the selection. The Magnetic Lasso will try to "snap" to the edge as you move the cursor around the subject.
* Slowly move the cursor along the outline of your subject. The Magnetic Lasso Tool will try to automatically detect the edge.
* If the lasso makes a mistake and jumps to the wrong area, press the Delete or Backspace key to remove the last fastening point. Then, carefully move the cursor back to the correct edge and continue.
* For very tight corners or areas where the contrast is low, you may need to click periodically to manually add fastening points.
* When you reach the starting point, click on the initial point to close the selection. The marching ants (selection outline) will appear.
4. Refine the Selection (if necessary - CRITICAL):
* The Magnetic Lasso Tool is rarely perfect. You'll likely need to refine the selection, especially around hair, fur, or areas with soft edges. This is where Select and Mask comes in.
* Go to `Select > Select and Mask...` (or click the "Select and Mask" button in the Options bar when the Selection tool is active).
* Use the Refine Edge Brush Tool: This is your primary tool for cleaning up the selection around hair and other challenging areas.
* Select the Refine Edge Brush Tool (it looks like a brush with hair).
* Paint along the edges of the hair (or other areas needing refinement). The tool will attempt to separate the hair from the background. Adjust the brush size as needed.
* Experiment with the "Shift Edge" slider to contract or expand the selection.
* Adjust the "Smooth," "Feather," and "Contrast" sliders to refine the selection further.
* Output Settings: In the "Output Settings" section, choose "Output To: New Layer with Layer Mask." This is important.
* Click "OK" to close Select and Mask. You'll now have a new layer with a layer mask, effectively isolating your subject.
5. Select the Background:
* In the Layers panel, select the *original* "Background" layer (the one you duplicated at the beginning). You need to select the layer you want to blur.
6. Apply the Blur:
* Go to `Filter > Blur > Gaussian Blur...`
* Adjust the "Radius" slider to control the amount of blur. Start with a small value (e.g., 2-3 pixels) and increase it until you achieve the desired effect. A higher radius will create a stronger blur.
* Click "OK."
7. Fine-Tune the Blur (Optional):
* If the blur is too strong or too weak, you can always undo it (Ctrl+Z or Cmd+Z) and try again with a different radius value. You can also use the `Filter > Blur Gallery` for more complex blurring options.
Important Considerations and Alternatives:
* The Quick Selection Tool and Select Subject: Before even considering the Magnetic Lasso, try these first. Go to `Select > Subject`. Photoshop's AI is often surprisingly good at selecting the subject. If it does a decent job, then jump straight to step 4 to refine the selection in Select and Mask. If `Select > Subject` fails completely, try the Quick Selection Tool (it looks like a brush with a dotted circle).
* Pen Tool: For the MOST accurate selections, especially around hair and complex shapes, the Pen Tool is the best choice. It takes more practice to master, but the results are worth it. You create paths around your subject and then convert the path to a selection.
* Layer Masks: The process above relies heavily on layer masks. Understanding how layer masks work is crucial for non-destructive editing in Photoshop. A layer mask allows you to selectively hide or reveal portions of a layer.
* Feathering: Consider adding a slight feather to your selection *before* applying the blur. This will soften the edge between the subject and the blurred background. You can do this in the Select and Mask dialog box.
* Smart Objects: Convert your background layer to a Smart Object *before* applying the Gaussian Blur. This allows you to adjust the blur radius later without re-doing the entire process (the blur becomes a Smart Filter). To do this, right-click on the Background layer in the Layers panel and choose "Convert to Smart Object."
Why the Magnetic Lasso isn't ideal for complex selections:
* Hair and Fine Details: The Magnetic Lasso often struggles with hair, fur, or other areas with intricate details. It can be difficult to get a clean selection without a lot of manual correction.
* Low Contrast: When the subject and background have similar colors or low contrast, the Magnetic Lasso can have trouble finding the edge.
In summary, while the Magnetic Lasso Tool can be used to blur the background of a portrait, it's important to understand its limitations and be prepared to refine the selection, especially around challenging areas like hair. The Quick Selection tool, Select Subject, and the Pen Tool are often better choices for creating accurate selections.