Before You Start:
* Image Quality: A high-resolution image will always yield better results.
* Photoshop Version: This tutorial assumes you have a relatively recent version of Photoshop (CS6 or later). The core functionality is the same, but interface elements might vary slightly.
* Non-Destructive Editing: We'll focus on non-destructive editing techniques, so you can always go back and adjust your changes.
Steps:
1. Open Your Image in Photoshop:
* Go to File > Open and select the portrait you want to edit.
2. Duplicate the Background Layer (Important!)
* In the Layers panel (usually on the right), select the "Background" layer.
* Press Ctrl+J (Windows) or Cmd+J (Mac) to duplicate the layer. This creates a "Layer 1" (or similar).
* Double-click "Layer 1" and rename it to something descriptive like "Subject Layer" or "Focused Subject." This helps keep things organized. *This is the layer we'll be making the selection on.*
3. Select the Magnetic Lasso Tool:
* Find the Lasso Tool in the Tools panel (usually on the left). It might be visible directly, or you might need to click and hold on the Lasso Tool icon to reveal a flyout menu and then choose the Magnetic Lasso Tool from the options.
4. Configure the Magnetic Lasso Tool (Very Important!):
* Look at the options bar across the top of the Photoshop window *while the Magnetic Lasso Tool is selected*. Adjust these settings carefully for optimal results:
* Width: This controls the search range of the tool. Start with a value between 1-10 pixels. A lower value is good for sharp edges; a higher value can help with softer edges. Adjust this as you go based on how well the tool is snapping to your subject. You can change this setting dynamically while using the tool by pressing the [ and ] keys.
* Contrast: This tells the tool how much contrast is required for it to "snap" to an edge. Start with a value around 10-20%. Higher contrast in your image requires higher contrast values in the tool. Lower contrast in your image requires lower contrast values in the tool.
* Frequency: This controls how often the tool places anchor points. Anchor points are the little "pins" that the tool uses to create the selection outline. A higher frequency (e.g., 50-60) will create a more detailed selection but can also create more anchor points to edit later. Start with a frequency of 20-30 and adjust as needed. More complex edges need a higher frequency.
* Feather: Leave this at 0 pixels for now. We'll add feathering later as part of the blurring process, if needed. Feathering softens the edges of the selection.
5. Create the Selection:
* Zoom In: Zoom in on your image (using Ctrl + + or Cmd + +) to get a better view of the edges. This is *crucial* for accurate selection.
* Start Tracing:
* Click once on an obvious starting point on the edge of your subject. The Magnetic Lasso Tool will create an anchor point.
* Slowly move your mouse (or pen if you're using a graphics tablet) along the edge of your subject. The tool will automatically snap to the edge, placing anchor points as you move.
* If the tool makes a mistake and snaps to the wrong area, you can press the Delete or Backspace key to remove the last anchor point and try again. Don't be afraid to undo and redo sections.
* For curved edges, move your mouse more slowly to allow the tool to accurately follow the curve.
* For straight edges, you can move your mouse faster.
* Closing the Selection:
* When you get back to your starting point, hover your mouse cursor over the first anchor point. A small circle will appear next to the cursor icon. Click to close the selection. You should now see a "marching ants" selection outline around your subject.
6. Refine the Selection (Quick Mask Mode - Highly Recommended):
* Press Q to enter Quick Mask mode. The selected area will be overlaid with a red (or a color you've chosen for your Quick Mask).
* Select the Brush Tool (B).
* Set your foreground/background colors to black and white (press D).
* Painting in Quick Mask:
* Black: Paint with black to *add* to the selection. Use a soft brush for gradual additions.
* White: Paint with white to *subtract* from the selection. Use a soft brush for gradual subtractions.
* Zoom in and carefully refine the edges of your selection, paying close attention to areas like hair, clothing folds, and any other details where the selection might be imperfect. Adjust the brush size using the [ and ] keys.
* Press Q again to exit Quick Mask mode. The "marching ants" selection outline will now reflect your refinements.
7. Invert the Selection:
* Go to Select > Inverse. Now the *background* is selected instead of your subject. We want to blur the background, so we need to select the background first.
8. Apply a Blur Filter:
* Go to Filter > Blur > Gaussian Blur... (Gaussian Blur is a common and effective choice).
* In the Gaussian Blur dialog box:
* Radius: This controls the amount of blur. Start with a small value (e.g., 2-5 pixels) and gradually increase it until you achieve the desired level of background blur. Pay attention to the preview window to see the effect. A subtle blur often looks more realistic than an extreme blur.
* Click OK.
9. Adjust Blur Strength (Optional):
* If you want to further refine the blur, you can use the Fade command. Go to Edit > Fade Gaussian Blur... immediately after applying the blur. This allows you to reduce the opacity of the blur effect. This can be useful for creating a more subtle or natural-looking blur.
10. Refine Edges (if needed) and Add a Slight Feather:
* Even after blurring, there might be a slight halo effect or hard edge between the subject and the blurred background. Here's how to address it:
* Deselect: Go to Select > Deselect (or press Ctrl+D/Cmd+D) to remove the selection.
* Blur Tool: Select the Blur Tool from the toolbar (it might be hidden under the Sharpen Tool – click and hold to reveal it).
* Settings: In the options bar at the top:
* Mode: Set the Mode to "Normal".
* Strength: Set the Strength to a *very low* value (e.g., 10-20%).
* Gently blur along the edges of the subject where it meets the background. A very low strength is important to avoid creating a noticeable, unnatural blur. This softens the transition.
* Alternatively, you can use the Smudge Tool with a very low strength to gently blend the subject and background pixels together. Experiment with both tools to see which gives you the best results for your image.
11. Optional: Add Depth of Field with a Gradient:
* To further enhance the depth of field effect, you can apply a gradient of blur. This makes the blur more pronounced further away from the subject.
* Create a new layer above your "Subject Layer". Name it something like "Blur Gradient".
* Select the Gradient Tool (G).
* In the options bar, choose a Black to White gradient. Set the gradient type to Linear Gradient.
* Draw a gradient from the top of the image down to roughly where you want the "in-focus" area to end. Black will be transparent, and white will be opaque. This gradient will control the amount of blur.
* Change the blending mode of the "Blur Gradient" layer to Soft Light or Overlay. Adjust the layer opacity to control the intensity of the gradient.
* Now, select the "Background Blur" layer (the layer where you applied the Gaussian Blur earlier). Go to Filter > Blur > Gaussian Blur... again. Adjust the Radius. Because of the gradient mask, the top of the image will blur more than the bottom, thus simulating natural depth of field.
12. Save Your Work:
* Go to File > Save As... and save your image as a Photoshop (.PSD) file. This preserves all your layers, so you can edit it later.
* If you need a flattened version for sharing (e.g., for the web), go to File > Save a Copy... and choose a format like JPEG or PNG.
Tips and Troubleshooting:
* Edge Artifacts: If you see a halo or fringing around your subject after blurring, try the following:
* Feathering: Go back to the selection you created. Go to Select > Modify > Feather... and add a small feather (e.g., 1-2 pixels) to the selection *before* inverting it and applying the blur. This softens the selection edge.
* Layer Mask: Instead of directly blurring the layer, create a *layer mask* based on your selection. This gives you more control over the blur effect. To do this: After inverting your selection, make sure the "Subject Layer" is selected, then click the "Add Layer Mask" icon at the bottom of the Layers panel. Then, select the Background Layer (the original one), and apply the blur to that background layer. You can edit the layer mask (painting with black and white) to fine-tune the transition.
* Contract/Expand Selection: Go to Select > Modify > Contract or Expand. Contracting the selection by 1-2 pixels before blurring can help remove unwanted edge pixels.
* Hair: Hair is notoriously difficult to select. Use Quick Mask Mode and the brush tool with low opacity and hardness to carefully paint in the strands. Experiment with the Refine Edge feature in the Select and Mask workspace (Select > Select and Mask) for advanced hair selection options (available in more recent versions of Photoshop). Consider using a specialized plugin for hair selection if you need very precise results.
* Practice: The more you practice, the better you'll become at using the Magnetic Lasso Tool and other selection techniques.
* Start Simple: Begin with images that have clear, defined edges. This will make the selection process easier.
Why the Magnetic Lasso Tool?
* Ease of Use: It's relatively easy to learn and use compared to more advanced selection tools.
* Efficiency: It can be a quick way to make selections, especially when you have good contrast between the subject and the background.
Alternatives:
* Pen Tool: The Pen Tool is the most precise way to create selections, but it requires more skill and time.
* Quick Selection Tool: This tool can be faster for making initial selections, but it may not be as accurate as the Magnetic Lasso Tool for complex edges.
* Select and Mask Workspace: (Photoshop CC and later): Offers advanced features for refining selections, including edge detection and hair refinement. Highly recommended if you have a recent version of Photoshop.
* Content-Aware Fill: For more complex backgrounds, you might need to use Content-Aware Fill (Edit > Fill > Content-Aware) to fill in areas after blurring.
* Plugins: Specialized plugins (e.g., those focused on masking or background removal) can provide more sophisticated features for complex selections.
Good luck, and have fun editing!