1. Open Your Image in Photoshop:
* Launch Photoshop.
* Go to `File > Open` and select the image you want to edit.
2. Select the Subject with the Magnetic Lasso Tool:
* Select the Tool: Choose the Magnetic Lasso Tool from the toolbar. It usually resides under the Lasso Tool (click and hold on the Lasso Tool icon if you don't see it directly).
* Adjust Settings (Important): Before you start drawing your selection, look at the options bar at the top. These settings are crucial for a good selection:
* Width: This determines how far away from the edge the tool looks for contrast to snap to. Start with a moderate value like `5-10` pixels and adjust as needed. Higher values work well with soft edges or lower contrast, while lower values are better for sharp edges with high contrast.
* Contrast: This setting defines the amount of contrast needed for the tool to detect an edge. A setting of `10-20%` is a good starting point. Increase it if the tool is struggling to find the edge, or decrease it if it's jumping to unwanted areas.
* Frequency: This controls how often the tool places fastening points along the edge. A higher frequency results in a more detailed selection but can also make it more sensitive to imperfections. Start with something around `57` and then adjust to achieve the desired level of detail.
* Edge Detection: This setting determines how the tool detects edges. You can select "Normal," "Hard Edge," or "Soft Edge," depending on the edge characteristics of the subject. In most cases, "Normal" provides a good balance.
* Start Tracing: Click once on the edge of your subject where you want to begin your selection. Slowly move the cursor along the edge of the subject. The tool will automatically "snap" to the edge based on the contrast it detects.
* Adding Points Manually: If the tool isn't following the edge precisely where you want it to, you can click to add fastening points manually. This gives you more control.
* Correcting Mistakes:
* Backspace/Delete: If you make a mistake and the tool jumps to the wrong place, press `Backspace` (or `Delete` on Mac) to remove the last fastening point and continue from there.
* Holding Alt/Option: While dragging the mouse, you can press and hold the `Alt` (Windows) or `Option` (Mac) key to temporarily switch to the Polygonal Lasso Tool. This allows you to create straight-line segments for areas where the edge isn't well-defined or has hard lines. Release the key to revert to the Magnetic Lasso Tool.
* Closing the Selection: Once you've traced the entire subject, bring the cursor back to the starting point. A small circle will appear next to the cursor. Click to close the selection. You should now see a "marching ants" outline around your subject.
3. Refine the Selection (Crucial):
* Select and Mask: Go to `Select > Select and Mask` (or click the "Select and Mask" button in the options bar after making the selection). This opens a dedicated workspace for refining your selection.
* View Mode: In the "Select and Mask" workspace, choose a view mode that allows you to clearly see the selection edges (e.g., "Overlay" or "On Black").
* Refine Edge Brush Tool: This is your best friend! Select the "Refine Edge Brush Tool" (it looks like a paintbrush with hair on it).
* Brush along the edges of the subject, particularly around hair, fur, or other areas with fine details. The tool will intelligently sample the surrounding pixels and try to improve the selection around those edges.
* Adjust the Brush Size: Use the `[` (left bracket) and `]` (right bracket) keys to increase or decrease the brush size as needed. Use a smaller brush size for fine details.
* Shift Edge Slider: Adjust the "Shift Edge" slider to slightly expand or contract the selection. A negative value will contract the selection (good for removing unwanted fringe), while a positive value will expand it. Be careful not to overdo it.
* Radius: This value specifies the width of the selection boundary in which edge refinement occurs. A higher radius can help refine edges with soft transitions, while a lower radius is better for sharper edges.
* Smooth: This slider smooths the selection edge to reduce jaggedness.
* Feather: This slider blurs the selection edge, which can help to blend the subject more seamlessly with the background after blurring.
* Contrast: Increasing the contrast slider can help to sharpen the selection edge, making it more defined.
* Decontaminate Colors: Check the "Decontaminate Colors" box. This helps to remove any color fringing or "color spill" from the background that might be affecting the edges of your subject. Adjust the "Amount" slider to control the level of decontamination.
* Output To: In the "Output Settings" section, choose "New Layer with Layer Mask" from the "Output To" dropdown menu. This creates a new layer with your selection as a mask, preserving the original image.
* Click OK: Exit the "Select and Mask" workspace.
4. Invert the Selection:
* You need to select the background, not the subject.
* Make sure the newly created layer is active. Then press `Ctrl+Shift+I` (Windows) or `Cmd+Shift+I` (Mac) to invert the selection. Now the background is selected.
5. Apply the Blur:
* Gaussian Blur: Go to `Filter > Blur > Gaussian Blur`.
* Adjust the Radius: Increase the "Radius" slider until you achieve the desired amount of background blur. A higher radius will create a stronger blur. Start with a small value (e.g., 2-5 pixels) and gradually increase it until you're happy with the result. Consider the "depth of field" you're trying to simulate. If you want a very shallow depth of field, you can use a higher radius.
* Click OK.
6. Optional: Fine-Tune the Mask (if needed):
* Double-click the Layer Mask thumbnail (the black and white rectangle next to the layer thumbnail) to reopen the "Properties" panel for the mask.
* You can further refine the mask using the "Density" and "Feather" sliders.
* You can also use the Brush tool (set to black to hide parts of the layer, and white to reveal them) to manually paint on the mask and make adjustments.
7. Save Your Work:
* Go to `File > Save As`.
* Choose a format that preserves layers (e.g., `.PSD` for future editing). You can also save a flattened version as a `.JPG` or `.PNG` for sharing.
Tips for Better Results:
* Zoom In: Zoom in to the image (using `Ctrl+Plus` or `Cmd+Plus`) when tracing with the Magnetic Lasso Tool, especially around complex areas like hair.
* Experiment with Settings: The optimal settings for the Magnetic Lasso Tool depend on the specific image. Don't be afraid to experiment with the "Width," "Contrast," and "Frequency" settings.
* Short, Controlled Strokes: Use short, controlled strokes with the Magnetic Lasso Tool rather than trying to drag it continuously.
* Complex Selections: For very complex selections (e.g., lots of fine hair, intricate patterns), consider using more advanced selection techniques like:
* Channels: Using color channels to create masks.
* Frequency Separation: Separating the image into high and low frequency components to make selection easier.
* Dedicated Selection Tools: Photoshop has tools like the "Select Subject" feature (found under the Select menu) which can do a decent job and then you can refine with Select and Mask. Also, consider purchasing and using a dedicated plugin for portraits if you do this work often.
* Add Noise (Optional): After blurring, you might want to add a small amount of noise to the background to help it blend with the subject more naturally. Go to `Filter > Noise > Add Noise`. Use a small amount of noise (e.g., 1-2%). Match the type of noise to the original image.
Why the Magnetic Lasso is a Good Choice (and its limitations):
* Good for relatively well-defined edges: The Magnetic Lasso excels when there's a clear contrast difference between the subject and the background.
* Easy to use: It's a relatively straightforward tool to learn.
Limitations:
* Struggles with low contrast or blurred edges: If the subject and background blend together, the Magnetic Lasso may have difficulty finding the edge.
* Hair and Fur: It's not the best tool for selecting fine details like hair or fur. The Refine Edge Brush Tool in "Select and Mask" is essential for these areas.
By following these steps and paying attention to the details, you can effectively blur the background of your portraits using the Magnetic Lasso Tool in Photoshop and achieve professional-looking results. Remember that practice makes perfect, so don't be discouraged if your first attempts aren't perfect.