Steps:
1. Open Your Image: Open your portrait image in Photoshop.
2. Select the Magnetic Lasso Tool: Locate the Lasso Tool in the toolbar (it looks like a rope). If you see the regular Lasso Tool or the Polygonal Lasso Tool, click and hold on the icon until a menu appears. Choose the "Magnetic Lasso Tool."
3. Adjust Settings (Optional, but recommended): Look at the options bar at the top of the screen. Here are some useful settings to adjust:
* Width: This determines how far the tool will search from your cursor to find an edge. A smaller width is good for fine details; a larger width can help if the edge is poorly defined. Start with something like 10-20 pixels and adjust as needed.
* Contrast: Higher contrast between the subject and background will make the magnetic lasso work better. A higher contrast value will make the tool more aggressive in snapping to edges. Start with a value around 10% and adjust as needed.
* Frequency: This determines how often Photoshop places anchor points as you trace. A higher frequency results in more anchor points, which can be more precise but also harder to manage. Start with 50-60 and adjust as needed.
* Tablet Pressure: If you're using a graphics tablet, you can enable "Tablet Pressure" to control the width sensitivity.
4. Trace the Subject:
* Click once on the edge of your subject to start the selection.
* Slowly move your cursor along the edge of the subject. The Magnetic Lasso Tool will automatically snap to what it perceives as the edge.
* You don't need to click constantly; just guide the cursor. The tool will add anchor points as it goes.
* If the tool makes a mistake and snaps to the wrong area, you can:
* Press the Delete/Backspace key to remove the last anchor point and reposition the cursor.
* Click manually to force an anchor point in a specific location.
* Continue tracing around the entire subject until you reach the starting point. Click on the starting point (a small circle will appear next to the cursor) to close the selection.
5. Refine the Selection (Crucial Step!): The Magnetic Lasso is rarely perfect. This is where you'll clean things up.
* Select and Mask...: Go to Select > Select and Mask... (or press Alt/Option + Ctrl/Cmd + R). This opens a dedicated workspace for refining selections.
* View Mode: Choose a view mode that helps you see the selection clearly. "Overlay" (red mask) or "On Black/White" are often useful.
* Tools in Select and Mask:
* Refine Edge Brush Tool (Brush with a hair icon): This is your primary tool for cleaning up edges, especially around hair. Paint along the edges of the hair to let Photoshop analyze and include stray strands. Be careful not to over-paint, as it can soften the edges too much. Adjust the brush size using the bracket keys ([ and ]).
* Brush Tool: Use this to paint directly on the mask to add or remove areas from the selection. Make sure your foreground color is set to white to add to the selection and black to subtract. Hold down Alt/Option while using the Brush Tool to switch to subtracting.
* Lasso Tool/Polygonal Lasso Tool: If you need to make major adjustments to the selection shape, you can use these tools to add or subtract areas.
* Global Refinements: In the properties panel on the right, you can adjust:
* Smooth: Smooths out jagged edges. Use sparingly.
* Feather: Softens the edge of the selection. A slight feather (0.5-1 pixel) can help blend the blur.
* Contrast: Sharpens the edge of the selection. Use sparingly.
* Shift Edge: Moves the selection edge inward (negative values) or outward (positive values). This can be helpful for removing halos.
* Decontaminate Colors: Helps remove color fringing along the edges. Often helpful, especially around hair.
* Output To: Choose "New Layer with Layer Mask" to output the selection as a layer mask. This is the most non-destructive option.
* Click OK to apply the refined selection.
6. Invert the Selection: Now you have the *subject* selected, but you want to blur the *background*. Go to Select > Inverse (or press Shift + Ctrl/Cmd + I). This inverts the selection, so the background is now selected.
7. Apply the Blur: Go to Filter > Blur > Gaussian Blur...
* A dialog box will appear. Adjust the "Radius" slider to control the amount of blur. Start with a small radius (e.g., 2-3 pixels) and increase it until you achieve the desired effect.
* The amount of blur depends on the image resolution and the desired effect. Experiment until you find a value that looks good.
* Click OK to apply the blur.
8. (Optional) Fine-tune the Blur: If you find the blur is too strong or weak, you can:
* Adjust the Layer Opacity: Select the blurred background layer and adjust the "Opacity" slider in the Layers panel to reduce the intensity of the blur.
* Add a Layer Mask to the Blur Layer: If you want to selectively reduce the blur in certain areas (e.g., near the subject's face), add a layer mask to the blurred background layer. Paint on the layer mask with black to hide the blur and with white to reveal it.
Alternative Methods (Recommended for Better Results):
* Quick Selection Tool/Object Selection Tool: These tools are often faster and more accurate than the Magnetic Lasso, especially for selecting the subject. The Object Selection Tool (available in newer Photoshop versions) is remarkably good at identifying objects. Use it to quickly select the subject, then proceed with refinement using Select and Mask.
* Pen Tool: The Pen Tool provides the most precise control for creating selections, but it requires practice to master. It's ideal for complex shapes and sharp edges. You create a path around the subject, then convert the path to a selection.
* Channels: In some cases, especially if the subject has a distinct color range, you can use channels to create a selection. This involves duplicating a channel, adjusting levels to increase contrast, and then using that channel as a mask.
* AI-Powered Selection (Photoshop 2020 and later): Photoshop's "Select Subject" (Select > Subject) command is surprisingly accurate and can often create a good initial selection with just one click. Then refine it with Select and Mask.
Tips for Better Results:
* Zoom In: Work at a zoomed-in view (200-300%) for better precision, especially when using the Magnetic Lasso Tool or refining the selection.
* Use a Graphics Tablet: A graphics tablet with a pressure-sensitive pen provides much more control than a mouse, especially for refining selections around hair.
* Work Non-Destructively: Always work on a duplicate layer or using layer masks so you don't permanently alter the original image.
* Save as PSD: Save your file as a PSD to preserve layers and layer masks for future editing.
* Experiment with Different Blur Types: Gaussian Blur is a good starting point, but you can also try other blur types like Lens Blur or Field Blur for more realistic depth-of-field effects. Lens Blur especially needs a depth map for best results, which requires more advanced techniques.
* Consider Depth of Field: When blurring, think about how depth of field works in a real camera. Parts of the background that are closer to the subject might be less blurred than parts that are farther away. You can simulate this effect by applying different amounts of blur to different areas of the background using layer masks.
Why the Magnetic Lasso Isn't Ideal (but usable):
* Edge Detection Can Fail: The Magnetic Lasso's edge detection isn't always perfect, especially in areas with low contrast or complex details (like hair).
* Less Precise Than Other Methods: It's not as precise as the Pen Tool or careful manual masking.
By following these steps and experimenting with the settings, you can effectively blur the background of your portrait using the Magnetic Lasso Tool in Photoshop. However, for more professional results, consider exploring the alternative selection methods mentioned above. Remember that refining the selection is key to achieving a realistic and polished look!