Step-by-Step Guide
1. Open Your Image in Photoshop: Open the portrait you want to edit in Photoshop (File > Open).
2. Duplicate the Layer: Duplicate the original layer (Right-click on the layer in the Layers panel and select "Duplicate Layer," or use the shortcut Ctrl/Cmd + J). This keeps your original image safe and allows you to work non-destructively.
3. Select the Magnetic Lasso Tool: Find the Magnetic Lasso Tool in the toolbar (it's usually nested with the Lasso Tool and Polygonal Lasso Tool). If you don't see it, click and hold the Lasso Tool icon and choose "Magnetic Lasso Tool" from the flyout menu.
4. Adjust Magnetic Lasso Tool Settings (Important!): Before you start drawing, look at the options bar at the top of the screen. Adjust these settings for optimal results:
* Width: This controls the area that the tool searches for an edge. Start with something like 5-10 pixels. Increase if you have a softer edge; decrease if the edge is very sharp. Experiment to find what works best for your image.
* Contrast: This setting determines how much contrast is needed for the tool to detect an edge. A higher value will only stick to edges with strong contrast; a lower value will stick to more subtle edges. Start around 10-20%. Adjust as needed.
* Frequency: This controls how often the tool places anchor points (the small points that define the selection). Higher frequency means more anchor points and a more detailed selection, but it can also make the selection less smooth. Start around 50-60.
* Tablet Pressure for Size: If you're using a graphics tablet, you can enable this to control the width of the magnetic lasso based on pen pressure.
* Edge Detection: If your subject blends into the background, consider toggling the "Sample All Layers" checkbox if you are working with multiple layers. This could provide more accurate edge detection.
5. Start Tracing the Subject:
* Click once on the edge of your subject to create your first anchor point.
* Slowly move your mouse or pen along the edge of the subject. The Magnetic Lasso Tool will automatically try to snap to the edge.
* If the tool makes a mistake and attaches to the wrong part of the image, press the Delete/Backspace key to remove the last anchor point and try again. Reposition your cursor closer to the correct edge.
* To manually add an anchor point, just click. This is useful in areas where the edge is unclear.
* To draw straight lines, hold down the Alt/Option key while clicking to create a straight-line segment, similar to using the Polygonal Lasso Tool.
* Continue tracing around the entire subject until you return to the starting point.
6. Close the Selection: When you reach the first anchor point, the cursor will change to include a small circle. Click on the first anchor point to close the selection. You should now see the "marching ants" (a dotted line) outlining your selection.
7. Feather the Selection (Important!): To avoid a harsh edge between the blurred background and the sharp subject, you need to feather the selection. Go to Select > Modify > Feather.... A small Feather Selection dialog box will appear. The feather radius depends on the resolution of your image. For a high-resolution image, a feather radius of 1-3 pixels might be appropriate. For a low-resolution image, you might need less. Experiment to find what looks best. Click OK. Feathering softens the edges of the selection, blending the blurred and unblurred areas together.
8. Invert the Selection: Now you need to select the *background* instead of the subject. Go to Select > Inverse. The marching ants should now be outlining the *background* of your image.
9. Apply the Blur: Now you can apply the blur effect. Go to Filter > Blur > Gaussian Blur.... The Gaussian Blur dialog box will appear. Adjust the Radius slider to control the amount of blur. Start with a small value (e.g., 2-3 pixels) and gradually increase it until you achieve the desired effect. Preview the blur in the image window and click OK when you're satisfied.
10. Deselect: Go to Select > Deselect (or press Ctrl/Cmd + D) to remove the selection outline.
11. Refine (If Necessary):
* Edge Issues: If you see a halo or other artifacts around the subject's edges, you can use the Eraser Tool (with a soft brush) to carefully blend the edges of the subject with the blurred background. Zoom in close and use a low opacity (e.g., 10-20%) for subtle adjustments. You can also try re-feathering with a slightly different value, but undo your blur first.
* Areas Missed: If you missed blurring certain areas of the background, you can use a soft-edged brush with the Blur Tool to selectively blur those areas.
* Too Much Blur: If you blurred too much, use the History panel to step back to the point before the blur and adjust the Gaussian Blur radius.
12. Save Your Image: Save your edited image. It's best to save it as a PSD file (Photoshop format) to preserve the layers in case you want to make further edits later. You can also save a flattened version as a JPG or PNG file for sharing. (File > Save As...)
Troubleshooting Tips
* Difficult Edges (Hair, Fur): The Magnetic Lasso Tool struggles with very fine details like hair or fur. For these cases, the *Select and Mask* workspace (formerly *Refine Edge*) is a better option. It allows you to refine the selection edge with much greater precision. You can access it from the Select menu.
* Too Many/Too Few Anchor Points: Adjust the "Frequency" setting on the Magnetic Lasso Tool options bar.
* Tool Not Sticking to the Edge: Adjust the "Width" and "Contrast" settings on the Magnetic Lasso Tool options bar. Also, make sure the edge you're tracing has enough contrast.
* Harsh Edges After Blurring: Ensure you feather the selection before applying the blur. A feather of 1-3 pixels is usually sufficient, but you may need more depending on the image resolution.
Alternative Methods
* Quick Selection Tool: Sometimes the Quick Selection Tool can make an initial selection quickly, and then you can refine it with the Magnetic Lasso Tool or Select and Mask.
* Pen Tool: The Pen Tool offers the most precise control for creating selections, but it requires more skill and practice.
* Select and Mask (Refine Edge): This is the best method for complex selections, especially when dealing with hair or fur. It allows you to refine the selection edge with sophisticated tools.
* Depth Maps & Lens Blur Filter: If your photo has depth map information (often available with phone cameras in portrait mode), you can use the Lens Blur filter in Photoshop with the depth map as a source. This creates a very realistic depth-of-field effect.
By following these steps and tips, you can effectively blur the background of your portrait using the Magnetic Lasso Tool in Photoshop and create a professional-looking image. Remember to experiment with the settings and refine the selection to achieve the best results for your specific image.