Steps:
1. Open Your Image in Photoshop:
* Launch Adobe Photoshop.
* Go to `File > Open` and select the portrait image you want to edit.
2. Duplicate the Background Layer (Important):
* In the Layers panel (usually on the right side of your screen), you'll see a layer called "Background."
* Right-click on the "Background" layer and select "Duplicate Layer..."
* Click "OK" to create a copy. This protects your original image and allows you to work non-destructively. You'll now have a layer called "Background copy."
3. Select the Subject using the Magnetic Lasso Tool:
* Select the Magnetic Lasso Tool from the Tools panel (it looks like a small magnetic lasso). If you see another lasso tool selected, click and hold the lasso icon to reveal the other options and choose the Magnetic Lasso Tool.
* Adjust Tool Settings (Important):
* Width: Start with a small width value (e.g., 3-5 pixels). Increase it if the edges are high contrast, reduce it if the edges are complex. This determines how far the tool will search for edges.
* Contrast: Set a value that matches the contrast of the edge you are trying to select. Higher contrast edges can use a higher value. Lower contrast edges should have lower values to avoid sticking to unwanted areas.
* Frequency: Higher values place more anchor points, creating a more detailed selection but potentially making the selection less smooth. Start with a medium value (e.g., 57) and adjust as needed.
* Tablet Pressure for Size: Leave this unchecked unless you are using a graphics tablet that supports pressure sensitivity.
* Start Tracing:
* Click once on the edge of your subject where you want to begin the selection.
* Slowly move the mouse along the edge of the subject. The Magnetic Lasso Tool will automatically try to "snap" to the edge based on contrast differences.
* Troubleshooting as You Go:
* If the tool snaps to the wrong edge, press the Delete or Backspace key to remove the last anchor point and manually click closer to the correct edge to place a new anchor point.
* If you need to create a straight line segment, click to manually place an anchor point, then click again at the end of the straight line segment.
* If you accidentally close the selection too early, undo (`Ctrl+Z` or `Cmd+Z` on Mac) and start again from the point where you went wrong.
* Close the Selection:
* When you reach the starting point, hover the cursor over the first anchor point. A small circle will appear next to the lasso cursor.
* Click to close the selection. You should now see the "marching ants" outlining your selected subject.
4. Refine the Selection (Critical):
The Magnetic Lasso is often not perfect. You'll likely need to refine the selection, especially around hair.
* Select and Mask: Go to `Select > Select and Mask...` (This opens the Select and Mask Workspace, which is specifically designed for refining selections.)
* Choose a View Mode: In the Select and Mask workspace, choose a View Mode from the dropdown at the top right (e.g., "Overlay" is helpful for seeing the selection boundary clearly).
* Refine Edge Brush Tool (Recommended for Hair):
* Select the Refine Edge Brush Tool (it looks like a paintbrush with hair).
* Adjust the Size of the brush to be slightly larger than the strands of hair you want to include in the selection.
* Paint over the edges of the hair. The tool will intelligently try to select the fine hair strands. Experiment with different brush sizes and stroke directions.
* Other Refinement Tools:
* Brush Tool (Add/Subtract): You can switch between adding to the selection (plus sign on the brush) or subtracting from the selection (minus sign on the brush) by holding down the Alt (Windows) or Option (Mac) key. Use this for cleaning up areas where the selection is too far in or too far out.
* Lasso Tool: Use this for making more precise, freehand adjustments to the selection boundary.
* Global Refinements (Right Panel):
* Smooth: Slightly smooths the edges of the selection.
* Feather: Adds a slight blur to the edges, which can help blend the subject with the blurred background. A small value (0.5 - 1 pixel) is often a good starting point.
* Contrast: Increases the contrast of the edge, making it sharper. Use with caution, as too much can make the edge look unnatural.
* Shift Edge: Allows you to expand or contract the selection. Positive values expand, negative values contract.
* Decontaminate Colors: Helps remove color fringing around the edges of the selection, especially noticeable against contrasting backgrounds. This is especially helpful around hair. Enable this option and then choose "New Layer with Layer Mask" for the output.
* Output Settings:
* In the "Output Settings" section, choose how you want to output the refined selection.
* Option 1 (Recommended): New Layer with Layer Mask - This creates a new layer containing the selected subject, with a layer mask that hides the background. This is the most flexible option because you can always adjust the mask later.
* Option 2: Selection - This just creates a selection outline. You can then use this selection to create a layer mask on the *original* Background Copy layer (see step 5).
* Click "OK" to close the Select and Mask workspace.
5. Blur the Background:
* If you used "New Layer with Layer Mask" in Select and Mask:
1. In the Layers panel, select the "Background copy" layer (the one *below* the layer with the subject and mask).
2. Go to `Filter > Blur > Gaussian Blur...`
3. Adjust the "Radius" slider until you achieve the desired level of background blur. A radius of 5-15 pixels is a good starting point. Click "OK".
* If you used "Selection" in Select and Mask:
1. Make sure the "Background copy" layer is selected.
2. Click the "Add Layer Mask" icon at the bottom of the Layers panel (it looks like a rectangle with a circle inside). This will create a mask based on your selection, hiding the subject.
3. Right-click on the newly created Layer Mask and choose "Invert Mask". This will invert the mask, hiding the background and showing the subject.
4. Now, go to `Filter > Blur > Gaussian Blur...`
5. Adjust the "Radius" slider until you achieve the desired level of background blur. A radius of 5-15 pixels is a good starting point. Click "OK".
6. Fine-Tune the Result (Optional):
* Adjusting the Layer Mask: If the edge between the subject and the blurred background is too harsh or if there are any areas where the selection isn't perfect, you can edit the layer mask.
* Select the layer mask (by clicking on its thumbnail in the Layers panel).
* Choose the Brush Tool (B).
* Set the Foreground Color to Black to hide areas (to erase mistakes in your selection) or White to reveal areas (to add to your selection). You can quickly switch between black and white by pressing the X key.
* Adjust the Brush Size and Hardness. A soft brush (low hardness) is generally better for blending.
* Paint on the layer mask to refine the edges of the selection.
* Adjusting the Blur: If you want to increase or decrease the blur, simply double-click on "Gaussian Blur" under the "Background Copy" layer (if it shows up as a Smart Filter - more on this below) or re-apply the Gaussian Blur filter.
Important Considerations and Tips:
* Non-Destructive Editing: Duplicating the background layer and using layer masks allows you to make changes without permanently altering the original image.
* Smart Filters: To make the Gaussian Blur editable later, convert the "Background copy" layer to a Smart Object *before* applying the blur. Right-click on the layer and choose "Convert to Smart Object". This allows you to double-click on the "Gaussian Blur" filter in the Layers panel to adjust it later.
* Edge Blending: Experiment with the "Feather" setting in the Select and Mask workspace or use a soft brush on the layer mask to soften the transition between the subject and the background.
* Depth of Field Simulation: For a more realistic effect, you can apply a "Field Blur" filter instead of a Gaussian Blur. This allows you to simulate depth of field, where the background is blurred more gradually.
* Practice: The Magnetic Lasso Tool can be tricky to master. Don't be discouraged if your first attempts aren't perfect. Practice on different images with varying levels of contrast and complexity. Try different selection methods as well.
* Alternative Selection Tools: For complex selections (especially hair), consider using the Quick Selection Tool or the Pen Tool in combination with layer masks. Photoshop's AI powered "Select Subject" function can also be a good starting point.
* Lighting and Color Grading: After blurring, consider adjusting the lighting and color grading of the subject and background to make them blend together seamlessly.
By following these steps and practicing, you can effectively blur the background of your portraits using the Magnetic Lasso Tool (and other selection tools!) in Photoshop and create visually appealing images. Remember that the Magnetic Lasso isn't always the best tool, so experiment with different selection methods to find what works best for you and your image. Good luck!