1. Open Your Image in Photoshop:
* Go to `File > Open` and select the portrait image you want to edit.
2. Select the Magnetic Lasso Tool:
* Find the Lasso Tool in the toolbar (usually on the left). It might be hidden beneath the regular Lasso Tool or the Polygonal Lasso Tool. Click and hold the Lasso Tool icon to reveal the flyout menu and select the "Magnetic Lasso Tool".
3. Adjust Magnetic Lasso Tool Settings:
* In the options bar at the top of the screen, you'll find some settings. These are important for getting a good selection:
* Width: This controls how far the Magnetic Lasso searches for edges. A smaller value (e.g., 5-10 pixels) is good for fine details. Increase it (e.g., 20-30 pixels) for areas with less distinct edges. Experiment to find what works best for your image.
* Contrast: This determines how much contrast the Magnetic Lasso needs to see to stick to an edge. Higher values (e.g., 20-30%) are useful for high-contrast edges. Lower values (e.g., 5-10%) are better for areas with low contrast.
* Frequency: This sets how many "anchoring points" the Lasso places along the edge. A higher value (e.g., 50-60) creates a more detailed selection, but can make the path appear more jagged. A lower value (e.g., 20-30) creates a smoother path but might not follow edges as precisely. Start with a middle value (e.g., 40) and adjust as needed.
* Tablet Pressure Controls Width: Uncheck this unless you are using a pressure-sensitive pen tablet.
4. Make Your Selection:
* Start by Clicking: Click on the edge of the subject (the person in your portrait) where you want to begin the selection.
* Follow the Edge: Slowly move your cursor along the edge of your subject. The Magnetic Lasso will automatically try to "snap" to the edge. Don't drag; just guide the cursor.
* Correcting Mistakes:
* Deleting Points: If the Magnetic Lasso jumps to the wrong place, press the `Delete` or `Backspace` key to remove the last anchoring point. Then, reposition your cursor and continue tracing.
* Adding Points Manually: You can manually add an anchor point by clicking anywhere. This is useful in areas where the Magnetic Lasso is struggling to find the edge.
* Switching to Straight Lines: If you need a straight line segment, hold down the `Alt` (Windows) or `Option` (Mac) key and click to place an anchor point. Release the key to return to magnetic selection.
* Closing the Selection: When you reach the starting point, move the cursor over the first anchor point. A small circle will appear next to the cursor. Click on the starting point to close the selection.
5. Refine Your Selection (Important!):
* The Magnetic Lasso is rarely perfect. Use the Select and Mask workspace to refine your selection.
* Go to `Select > Select and Mask`.
* View Mode: Choose a view mode that makes it easy to see the edges of your selection (e.g., Overlay, On Layers, Black & White).
* Refine Edge Brush Tool (Brush with a "+" sign): Carefully paint along the edges of your subject, especially around hair and fine details. This helps Photoshop better define the edges.
* Erase Refinements Brush Tool (Brush with a "-" sign): Use this to remove refinements you don't want.
* Global Refinements (on the right panel):
* Smooth: Smooths out the edges of the selection.
* Feather: Blurs the edges of the selection (use sparingly at this stage).
* Contrast: Increases the contrast to sharpen the edges.
* Shift Edge: Move the selection inward or outward. This is often helpful to remove halos. A slight negative value is often helpful.
* Output To: Choose "Selection" or "Layer Mask" from the dropdown. "Layer Mask" is usually preferred as it's non-destructive.
* Click "OK" to exit the Select and Mask workspace.
6. Invert the Selection (Select the Background):
* If you outputted a "Selection" in Select and Mask, go to `Select > Inverse` (or press `Shift + Ctrl + I` on Windows, or `Shift + Command + I` on Mac). This selects everything *outside* of your subject (i.e., the background). If you outputted a "Layer Mask" in Select and Mask, the mask will already be applied to the selected layer, so the following steps will apply to the background *already*.
7. Apply the Blur:
* Go to `Filter > Blur > Gaussian Blur`.
* Adjust the "Radius" slider to control the amount of blur. A value between 2 and 10 pixels is usually sufficient, but experiment to find what looks best for your image. Larger radius values create more blur.
* Click "OK".
Alternative: Using a Layer Mask and Smart Filter (Recommended):
Instead of directly blurring the background layer, consider these steps for a more flexible, non-destructive approach:
1. Follow steps 1-6 as described above, outputting a "Layer Mask" in the Select and Mask workspace (as described above). This will create a layer mask next to your original layer.
2. Convert to Smart Object: Right-click on the layer in the Layers panel and choose "Convert to Smart Object". This allows you to apply filters non-destructively, so you can change the blur later.
3. Apply the Blur: Go to `Filter > Blur > Gaussian Blur`. Adjust the radius and click "OK".
4. Edit the Blur Later: Because you used a Smart Object, the Gaussian Blur will appear as a "Smart Filter" under the layer in the Layers panel. Double-click on "Gaussian Blur" to re-edit the blur settings at any time.
5. Refine the Mask: Double-click the layer mask thumbnail next to your layer. This will bring you back to the "Select and Mask" workspace, where you can refine the mask further if needed.
Tips and Considerations:
* Practice: The Magnetic Lasso Tool takes practice to master. Don't get discouraged if your first attempt isn't perfect.
* High-Resolution Images: It works better with high-resolution images because there are more pixels for it to lock onto.
* Complex Subjects (Hair, Fur): The Magnetic Lasso can struggle with fine details like hair or fur. This is where the Refine Edge Brush in the Select and Mask workspace is crucial. Sometimes, more advanced selection methods like the Pen Tool are necessary.
* Experiment: Try different settings for the Magnetic Lasso Tool to find what works best for your specific image.
* Zoom In: Zoom in closely (200-300%) while making your selection for greater accuracy.
* Alternatives: For best results, especially with complex subjects, consider using other selection tools like the:
* Select Subject: The AI-powered "Select Subject" button in the Options bar is excellent at finding the main subject in the photo. It's a great starting point!
* Quick Selection Tool: This tool lets you "paint" a selection. It's more forgiving than the Magnetic Lasso.
* Pen Tool: This is the most accurate selection tool, but it requires more skill and patience. It creates vector paths that can be converted to selections.
By following these steps and taking your time, you can use the Magnetic Lasso Tool (and, more importantly, the Select and Mask workspace) to blur the background of your portrait in Photoshop, creating a shallow depth of field effect. Remember to refine your selection carefully for a professional-looking result!