Before you start:
* Open your image in Photoshop: Go to File > Open, and select your portrait.
* Duplicate the layer: Press `Ctrl/Cmd + J` to create a copy of your background layer. This is crucial. Working on a duplicate allows you to make changes non-destructively, and to easily go back if you make a mistake. Name the layer "Subject".
* Zoom in: Zoom into the image so you can get the outlines as accurate as possible.
Steps:
1. Select the Magnetic Lasso Tool:
* In the Tools panel (usually on the left), look for the Lasso Tool icon. It looks like a small rope.
* Click and hold the Lasso Tool icon until a flyout menu appears.
* Select the Magnetic Lasso Tool. (If it's already visible, just click on it.)
2. Adjust Magnetic Lasso Tool Settings (in the Options Bar at the Top):
* Width: This controls how far away the tool searches for an edge. A higher width allows more leeway, but can also grab unwanted elements. Start with something like 5-10 pixels and adjust as needed. A lower width like 1-5 pixels will be more precise, but require you to carefully trace the outline.
* Contrast: Determines how sensitive the tool is to contrast variations. Higher contrast (e.g., 20-30%) works well when there's a clear difference between the subject and background. Reduce the contrast if the outline is soft.
* Frequency: Controls the number of fastening points the tool places. Higher frequency (e.g., 50-70) creates a more detailed selection, but can be resource-intensive. Lower frequency is faster but might miss some details.
* Tablet Pressure: If you are using a pen tablet, you can check this.
3. Create the Selection:
* Click on the edge of your subject (e.g., where their hair meets the background, or their shoulder meets the background). This sets the starting point of your selection.
* Slowly move your cursor along the edge of the subject. The Magnetic Lasso Tool will automatically try to "snap" to the edge based on contrast.
* Let the tool do the work: You don't have to click constantly. Just guide the cursor along the edge.
* Adding Points Manually: If the tool is straying from the edge, *click* to manually add a fastening point. This forces the tool to anchor at that specific location.
* Fixing Mistakes:
* If the tool makes a mistake and anchors to the wrong spot, press the `Delete` key (or `Backspace` on Mac) to remove the last fastening point. Then, reposition your cursor and continue.
* If you have to go back a long way, you can either use `Ctrl + Z` (Cmd + Z) or start over from the last accurate point.
* Completing the Selection:
* When you reach the starting point, hover your cursor over the initial anchor point. A small circle will appear next to the cursor.
* Click on the starting point to close the selection. You'll now see the "marching ants" indicating your selection.
4. Refine the Selection (Select and Mask):
* With the selection active, go to Select > Select and Mask (or click the "Select and Mask" button in the Options Bar at the top if it's available in your Photoshop version). This opens the Select and Mask workspace, which is crucial for refining edges, especially around hair.
* View Mode: Choose a view mode that helps you see the edges clearly (e.g., "Overlay" with the red overlay).
* Edge Detection:
* Radius: Increase the Radius slider slightly to help Photoshop identify edges better. Don't go overboard; start with 1-2 pixels and increase gradually.
* Smart Radius: Turn this on. It helps the algorithm adapt to edges of varying sharpness.
* Global Refinements:
* Smooth: Use the Smooth slider to smooth out jagged edges. A small amount (e.g., 2-5) can help.
* Feather: Feathering softens the edge of the selection. Add a small amount of feather (e.g., 0.5 - 1 pixel) to blend the subject seamlessly with the blurred background.
* Contrast: Increase the Contrast slider to sharpen the edge. Use this cautiously, as too much can create a harsh line.
* Shift Edge: This is useful for expanding or contracting the selection. If you see a halo effect around your subject, try shifting the edge slightly inwards (negative value).
* Refine Edge Brush Tool (Important for Hair):
* In the Select and Mask workspace's toolbar (usually on the left), find the Refine Edge Brush Tool (it looks like a brush with a plus sign).
* Paint along the edges of the hair (or other fine details like fur). The tool will analyze the edge and try to include the fine details in the selection. Adjust the brush size as needed using the bracket keys (`[` and `]`). Use a small brush for the most precise areas.
* Output Settings:
* Output To: Choose "New Layer with Layer Mask" from the dropdown menu. This creates a new layer with the refined selection as a layer mask.
* Click OK.
5. Blur the Background:
* In the Layers panel, select the original "Background" layer. (The one *before* you duplicated it and the one that does *not* have a layer mask).
* Go to Filter > Blur > Gaussian Blur.
* Adjust the Radius slider to control the amount of blur. A higher radius creates a stronger blur. Start with a low value (e.g., 2-5 pixels) and increase it gradually until you achieve the desired effect.
* Click OK.
6. (Optional) Adjust the Blur Further:
* If you want to add more blur later, you can re-apply the Gaussian Blur to the background layer. However, be careful not to overdo it.
7. (Optional) Adjust the Layer Mask:
* If you notice any areas where the selection isn't perfect, you can edit the layer mask on the "Subject" layer.
* Select the layer mask (click on the black and white thumbnail next to the layer thumbnail).
* Choose the Brush Tool (B).
* Set the Foreground Color to:
* Black: To hide parts of the "Subject" layer (and reveal more of the blurred background).
* White: To reveal parts of the "Subject" layer (and hide more of the blurred background).
* Paint on the image to adjust the mask. Use a soft brush for smoother transitions. Use `X` to switch between black and white.
8. (Optional) Add Depth of Field Effects:
* For a more realistic depth of field, you can apply different levels of blur to different parts of the background. This is more advanced, but it can make the result look much more natural. You can use techniques like creating a depth map and using the Lens Blur filter for this.
Important Tips and Considerations:
* Practice: The Magnetic Lasso Tool can take some practice to master. Don't get discouraged if your first few attempts aren't perfect.
* High-Resolution Images: Working with high-resolution images will give you more detail and allow for better selections.
* Clean Edges: The Magnetic Lasso Tool works best with images that have clearly defined edges between the subject and the background.
* Complex Selections: For very complex selections (e.g., hair blowing in the wind), the Select and Mask workspace is essential, and you might also consider using the Pen Tool for more precise control or Explore other selection methods.
* Non-Destructive Editing: Always work on a duplicate layer, and use layer masks. This allows you to undo changes easily and preserve the original image.
* Experiment: Don't be afraid to experiment with different settings and techniques to find what works best for your image.
* Refine, Refine, Refine: The key to a great result is careful refinement of the selection and the blur.
By following these steps, you should be able to effectively blur the background of a portrait using the Magnetic Lasso Tool in Photoshop. Good luck!