Here's a step-by-step guide:
1. Open Your Image in Photoshop:
* Launch Photoshop.
* Go to `File > Open` and select the portrait image you want to edit.
2. Duplicate the Background Layer (Important for Non-Destructive Editing):
* In the Layers panel (usually found on the right-hand side of your screen), select the "Background" layer.
* Right-click on the "Background" layer and choose `Duplicate Layer...`
* Name the duplicated layer something like "Portrait Layer" or "Subject Layer." This allows you to experiment without harming the original image.
3. Select the Magnetic Lasso Tool:
* In the Tools panel (typically on the left-hand side), look for the Lasso Tool. Click and hold on the Lasso Tool icon. A flyout menu will appear.
* Select the Magnetic Lasso Tool from the flyout menu.
4. Configure the Magnetic Lasso Tool (Options Bar at the Top):
* Width: This determines how far away from your cursor the tool will look for edges. Start with a value like 10 pixels and adjust as needed. Higher values work best for high contrast areas, lower values for tighter, more detailed areas.
* Contrast: This controls how sensitive the tool is to changes in contrast. A higher value (e.g., 20-30%) will make it stick more strongly to edges, even if they're subtle. Lower values (e.g., 10%) are good for areas with less contrast.
* Frequency: This sets how often the tool places anchor points along the selection. Higher frequencies (e.g., 50-60) will create more detailed selections but might require more correction. Lower frequencies (e.g., 20-30) are faster but potentially less accurate.
* Feather: Leave this at 0 for now. We can add feathering later for a smoother transition.
* Anti-alias: Make sure this is checked for smoother edges.
5. Create Your Selection:
* Start Point: Click a starting point along the edge of your subject. Choose a spot where there's good contrast between the subject and the background.
* Trace the Outline: Slowly move your mouse cursor along the edge of your subject. The Magnetic Lasso Tool will automatically snap to the edge, placing anchor points as you go.
* Correcting Mistakes:
* If the tool makes a mistake and snaps to the wrong edge, press the `Delete` (or `Backspace`) key to remove the last anchor point. You can then reposition your cursor and continue tracing.
* For more precise control, you can manually click to place anchor points yourself.
* Closing the Selection: When you get back to your starting point, hover over the starting point until a small circle appears next to the cursor. Click to close the selection. Photoshop will now show the "marching ants" selection outline.
6. Refine the Selection (Important!):
The Magnetic Lasso Tool is good but rarely perfect. This is where refinement comes in.
* Select and Mask: Go to `Select > Select and Mask...` This opens a dedicated workspace for refining selections. This is the best option to refine complex edges like hair.
* View Mode: Choose a view mode that helps you see the selection clearly (e.g., Overlay, On Black, On White).
* Edge Detection:
* Radius: Increase the Radius slider slightly. This helps the algorithm detect edges better, especially around hair. Don't overdo it, as it can soften the selection too much.
* Smart Radius: Try enabling Smart Radius. This automatically adjusts the radius based on the complexity of the edge.
* Global Refinements:
* Smooth: Increase the Smooth slider slightly to smooth out jagged edges.
* Feather: Add a small amount of Feather (e.g., 0.5 - 2 pixels) for a more natural-looking transition between the subject and the blurred background. The exact value depends on the resolution of your image.
* Contrast: Increase the Contrast slider slightly to sharpen the edge of the selection.
* Shift Edge: This is important! *Slightly* shift the edge inward (`Shift Edge` slider to the left) to avoid a thin halo around the subject. A small negative value (e.g., -5% to -10%) is often effective.
* Brush Tools (Left Side):
* Refine Edge Brush Tool (Brush with a + sign): Use this tool to paint along the edges of the hair (or other difficult areas). It will intelligently refine the selection in those areas. Make sure "Sample All Layers" is *not* checked.
* Brush Tool (Hard Round Brush): Use this tool (set to add or subtract from the selection using the options at the top) to manually clean up any remaining areas where the selection is inaccurate. Hold down the `Alt` (or `Option`) key to subtract from the selection.
* Output Settings:
* Output To: Choose `New Layer with Layer Mask`. This creates a new layer with a mask based on your refined selection, preserving the original image.
* Click `OK`.
7. Select the Background:
* Now that you have a layer mask isolating the subject, you need to select the background.
* In the Layers Panel, click on the original "Portrait Layer" (the duplicated layer, *not* the one with the layer mask).
8. Invert the Selection:
* Go to `Select > Inverse`. This inverts the selection, so now the background is selected instead of the subject.
9. Apply the Blur:
* Go to `Filter > Blur > Gaussian Blur...`
* Adjust the `Radius` slider until you achieve the desired level of background blur. A higher radius value will create a stronger blur. Start with a low value (e.g., 5 pixels) and gradually increase it until you're happy with the result.
* Click `OK`.
10. Fine-Tune (Optional):
* Adjust Layer Mask: If you notice any imperfections in the selection, you can edit the layer mask on the "Portrait Layer" (the one with the mask). Select the layer mask thumbnail in the Layers panel.
* Use the Brush Tool (black to hide, white to reveal) to paint on the layer mask and further refine the edges. Zoom in to see the details.
11. Save Your Work:
* Go to `File > Save As...`
* Choose a file format that preserves layers (e.g., PSD, TIFF) if you want to be able to edit the image later. If you're finished, you can save a flattened version as a JPEG.
Important Tips and Considerations:
* Zoom In: Zoom in to 100% or higher when making and refining the selection for greater accuracy.
* Practice: The Magnetic Lasso Tool takes practice to master. Don't get discouraged if your first few attempts aren't perfect.
* Contrast is Key: The Magnetic Lasso Tool works best when there's a clear contrast between the subject and the background. If the contrast is poor, consider using other selection tools like the Pen Tool or Select and Mask's refined edge tools.
* Non-Destructive Editing: Always work on a duplicate layer to preserve the original image. Layer masks are crucial for non-destructive editing, allowing you to easily adjust the selection later.
* Blur Choice: Gaussian Blur is a common choice, but you can experiment with other blurs like Field Blur or Iris Blur for different effects. Iris Blur is particularly good for simulating depth of field.
* Feathering: Too much feathering can make the subject look blurry. Use it sparingly.
* Select and Mask: This is a powerful tool for refining selections, especially around hair. Spend time learning its features.
* Hair: Hair is notoriously difficult to select. The Select and Mask workspace, especially with the Refine Edge Brush, is essential for achieving realistic results. Consider using channels for very complex hair selections if Select and Mask isn't sufficient.
By following these steps and practicing, you'll be able to effectively blur the background of your portrait photos using the Magnetic Lasso Tool and Select and Mask in Photoshop. Remember to pay attention to detail and refine your selections for the best results. Good luck!