Steps:
1. Open Your Image in Photoshop:
* Go to File > Open... and select your image file.
2. Select the Magnetic Lasso Tool:
* In the Tools panel (usually on the left), find the Lasso Tool icon. Click and hold on it to reveal a fly-out menu.
* Select the Magnetic Lasso Tool.
3. Adjust Magnetic Lasso Tool Settings (in the Options Bar):
* Width: This controls how far the tool searches for edges. Start with a value between 5 and 20 pixels. Adjust as needed based on your image's detail. A higher value is good for smoother edges, while a lower value is better for fine details.
* Contrast: This determines how sensitive the tool is to differences in color and tone. A higher contrast setting works well for edges with a strong difference in contrast. Start around 10% and adjust.
* Frequency: This controls how often the tool places anchor points (the little dots that define the selection). Higher frequency means more points, resulting in a more precise selection, but also more points to potentially edit. Start around 57 and adjust
* Tablet Pressure to Control Size: Uncheck this box unless you are using a tablet.
4. Create the Selection Around Your Subject:
* Start Point: Click once on a distinct edge of your subject to set the starting point.
* Trace the Edge: Slowly move your cursor along the edge of the subject. The Magnetic Lasso Tool will automatically snap to the edge, placing anchor points as you go.
* Manual Anchor Points: If the tool struggles, you can manually add anchor points by clicking along the edge. This is helpful for tricky areas with low contrast.
* Undo Mistakes: If you make a mistake, press the Delete/Backspace key to remove the last anchor point.
* Close the Selection: Once you've traced the entire subject, move the cursor back to the starting point. A small circle will appear next to the cursor. Click to close the selection.
5. Refine the Selection (If Necessary):
* Select and Mask Workspace: Go to Select > Select and Mask. This opens a dedicated workspace for refining selections.
* View Mode: Choose a view mode that helps you see the selection edge clearly (e.g., Overlay, On Black, On White).
* Tools in Select and Mask:
* Quick Selection Tool: For adding or subtracting larger areas of the selection.
* Refine Edge Brush Tool: This is crucial for improving edges, especially hair and fur. Paint along the edges of the subject, focusing on areas where the selection isn't perfect. The tool analyzes the edge and tries to improve the selection. Pay close attention to the "Decontaminate Colors" option (explained below).
* Lasso Tool: For making precise adjustments to the selection. Hold Alt/Option to subtract from the selection or Shift to add.
* Hand Tool to navigate
* Zoom Tool to zoom in and out
* Global Refinements (on the right-hand side):
* Smooth: Reduces irregularities in the selection edge.
* Feather: Blurs the selection edge (can be used to blend the subject more smoothly into the background after blurring). Small values like 0.5 - 1 pixel are generally sufficient.
* Contrast: Sharpens the selection edge. Use sparingly.
* Shift Edge: Moves the selection edge inward or outward. Use this to deal with halos or fringing. A negative value will move the selection edge inwards (useful for removing light halos around hair), and a positive value moves it outwards.
* Decontaminate Colors: This is important if your subject has fine details like hair. It helps remove color fringing (colored edges) from the subject's edges that might be leftover from the background. Enable this option.
* Output Settings:
* Output To: Choose New Layer with Layer Mask. This creates a new layer with a layer mask, allowing you to edit the subject and background independently without permanently affecting the original image.
* Click OK.
6. Select the Background:
* Click on the original layer in the Layers Panel.
* Go to Select > Inverse. This inverts the selection, so the background is now selected.
7. Blur the Background:
* Go to Filter > Blur > Gaussian Blur.
* In the Gaussian Blur dialog box, adjust the Radius slider to control the amount of blur. Start with a small value (e.g., 2-5 pixels) and increase it until you achieve the desired level of blur. The amount of blur you need will depend on the resolution of your image and the overall effect you want to achieve.
* Click OK.
8. (Optional) Fine-Tune the Layer Mask:
* In the Layers panel, make sure the Layer Mask thumbnail (the black and white thumbnail) for the top layer is selected.
* Use the Brush Tool (B).
* Set your foreground color to black to *hide* parts of the subject (reveal the background).
* Set your foreground color to white to *reveal* parts of the subject (hide the background).
* Use a soft brush (low hardness) and low opacity (around 10-20%) for smooth transitions.
* Carefully paint around the edges of the subject to fix any minor imperfections in the mask.
9. Save Your Image:
* Go to File > Save As...
* Choose a format that supports layers (e.g., PSD, TIFF). This allows you to edit the image later.
* To share or use online, save a copy as a JPEG.
Tips and Considerations:
* Patience is Key: Creating a good selection takes time and practice. Don't rush it, especially around complex areas like hair.
* Zoom In: Zooming in closely helps you see the details and create a more accurate selection.
* Start with Broad Strokes: If you are using the Quick Selection Tool in "Select and Mask," start with broad strokes to select the main areas, then refine the edges with smaller strokes and the Refine Edge Brush.
* Feathering: Adding a slight feather to the selection (either in Select and Mask or after creating the mask) can help blend the subject and background more naturally.
* Experiment with Blur Types: While Gaussian Blur is common, try other blur filters like Box Blur, Lens Blur, or Field Blur for different effects. Lens Blur can simulate depth of field.
* Non-Destructive Editing: Using layer masks is a non-destructive way to edit, meaning you can always go back and change the selection or blur amount without affecting the original image.
* Background Complexity: If the background is very complex and has similar colors to the subject, the Magnetic Lasso Tool might struggle. In such cases, consider using the Pen Tool for a more precise (though more time-consuming) selection.
* Hair Selection: Hair is often the trickiest part. Use the Refine Edge Brush Tool specifically designed for hair selection in the Select and Mask workspace.
By following these steps, you can effectively blur the background of a portrait using the Magnetic Lasso Tool in Photoshop and achieve a professional-looking result. Remember to practice and experiment to find the settings and techniques that work best for your images.