How to Change the Background in an Image Using Photoshop

If you’ve taken a great photo of your subject but the background just doesn’t fit, don’t worry – you can easily change the background to whatever you’d like in a few steps using photo editing programs such as Adobe Lightroom or Photoshop.

In this Photoshop tutorial, we’ll show you how you can replace the background image, including how to select your subject and color match the original images.

photoshop-4922484

How to Change Background Images Using Photoshop

There are several steps to replace a background image in Adobe Photoshop CC. Firstly, you need to import both the original image and your new background image. Then, you need to select and mask your subject, subtract the background, and overlay the subject on the new background. Finally, you can add finishing touches such as color to match the two images.

ott-how-to-change-background-image-using-photoshop-1-compressed-7122910

Of course, this will be easier with an image that has a clearly defined subject and background, such as the image we’ve chosen to illustrate the process. If there are several subjects, or there is a foreground or an unclear background, it will be more difficult to create a convincing image.

With that out of the way, here’s how to change the background of an image.

Step 1: Import the New Background Image

The first step is to open your image and import the new background. The trick here is to use a background image that fits the perspective of your subject as best as possible.

In our example, a lady is looking into the distance and her upper body is visible. Choosing an image with too much of a foreground would not match it, so we’ve chosen a distant landscape with a similar perspective as the new background.

  1. Open the image in Photoshop by either clicking and dragging the file in or by selecting File > Open and choosing the image file.
ott-how-to-change-background-image-using-photoshop-2-compressed-9004915
  1. With the image open in Photoshop, select File > Place Embedded.
ott-how-to-change-background-image-using-photoshop-3-compressed-1048531
  1. Navigate to your new background image and select Place.
ott-how-to-change-background-image-using-photoshop-4-compressed-3433277
  1. Place the new layer below the original layer by clicking and dragging it in the Layers panel. You may have to unlock the original layer by clicking the lock icon first.
ott-how-to-change-background-image-using-photoshop-5-compressed-2565108

Step 2: Select and Mask the Subject

There are several ways to create a selection. If you have a clear subject, Adobe Photoshop’s automatic subject selection tool is the easiest to use. However, you can use a combination of the Quick Selection tool, the Magic Wand tool, and the lasso tool to select your subject, too.

Select Your Subject

  1. Click Select.
  2. Click Select Subject and let Photoshop perform its magic.
ott-how-to-change-background-image-using-photoshop-6-compressed-4241346
  1. Alternatively, use the Quick Selection or Magic Wand tool to select as much of your subject as possible.
ott-how-to-change-background-image-using-photoshop-7-compressed-5774231
  1. Use the Lasso tool to refine your selection. This will be necessary for harder to identify subjects. In our example, you can see that Adobe has picked up some wrong areas.
ott-how-to-change-background-image-using-photoshop-8-compressed-2558844
  1. With the lasso tool, holding shift and circling an area will add to the selection while holding alt will subtract.
ott-how-to-change-background-image-using-photoshop-9-compressed-6871539
  1. Click Select and Mask… to cut out your subject.
ott-how-to-change-background-image-using-photoshop-10-compressed-1725917

Refine the Selection

  1. Refine the selection further if needed by using the lasso and brush tools from the toolbar. To add to your selection, make sure the add to selection button is selected. To remove areas, click the subtract from selection button.
ott-how-to-change-background-image-using-photoshop-11-compressed-5690736
  1. Finally, zoom in to the edge of your selection. If the edges look unnatural, under Global Refinements, change the Smoothness and Contrast sliders until the selection looks more natural. It can be helpful to adjust the Opacity slider to 100% to better see the edges.
ott-how-to-change-background-image-using-photoshop-12-compressed-5646771
  1. Click on Refine Edges to fine-tune any difficult areas, such as hair. Then select Refine Hair (if it is hair) to let Photoshop refine the edge automatically, or use the brush to add areas to your selection.
ott-how-to-change-background-image-using-photoshop-13-compressed-7764682
  1. In the Output Settings, select the drop-down menu and click Layer Mask then select OK.
ott-how-to-change-background-image-using-photoshop-14-compressed-7661586

Note: The more time you spend refining your selection, the better your results will be. Zoom in and pay close attention to any areas that Photoshop has accidentally added or removed. You can always adjust your selection later by double-clicking the mask layer.

Position Your Subject in the Composition

Now, simply click and drag your subject to where you would like them to appear in the final image. This is entirely up to preference.

Step 3: Match the Perspective

Matching the perspective from the original photo to your new background will help make the image look more realistic. To do so, you can use the ruler tool to mark where the horizon is in the original image, and line the new background up so that it’s in more or less the same position.

  1. Disable the layer mask by holding shift and clicking the layer mask so that the original background is clearly visible. If successful, the layer mask should have a red cross covering it.
ott-how-to-change-background-image-using-photoshop-15-compressed-7439716
  1. Click and drag from the horizontal ruler to create a line where the horizon would likely be.
ott-how-to-change-background-image-using-photoshop-16-compressed-2607815
  1. Using the Move tool, position or resize the new background so that the horizon aligns with the original perspective. To make this easier, slide down the opacity on the top layer.
ott-how-to-change-background-image-using-photoshop-17-compressed-6928337

Step 4: Content-Aware Fill

If you have reached the edge of your image and introduced a transparent background, you can use the Content Aware Fill tool to create a background in that area. If your background has no transparent pixels, you can skip this step.

To fill the transparent area:

  1. Right-click your background layer and select Rasterize Layer.
ott-how-to-change-background-image-using-photoshop-18-compressed-7776834
  1. Select the Rectangular Marquee Tool and make a selection that includes the transparent area as well as a small amount of your background.
ott-how-to-change-background-image-using-photoshop-19-compressed-9925835
  1. Click Edit > Content-Aware Fill.
ott-how-to-change-background-image-using-photoshop-20-compressed-4939633
  1. Click OK.

Step 4: Match Depth of Field

The next step is to match the depth of field of your original image. For this, you have to image how cameras work, and which parts of the image should be in focus. In our example, the woman in the foreground is in focus, meaning everything in the distance will be out of focus. The further away, the more out of focus it will be.

To add this effect, we’ll introduce blur to the background image:

  1. Select the background layer.
  2. Select Filter > Blur Gallery > Tilt Shift. Other blur effects will work as well (such as Gaussian blur), but tilt shift will give the effect of gradually increasing blur into the distance.
ott-how-to-change-background-image-using-photoshop-21-compressed-2664488
  1. Drag the middle circle down until it is where your subject’s plane of focus will be (in our case, the woman’s feet). Everything above the top dotted line will be out of focus.
ott-how-to-change-background-image-using-photoshop-22-compressed-8599483
  1. Change how much blur is introduced with the Blur slider. Move this around until it looks realistic then select OK.
ott-how-to-change-background-image-using-photoshop-23-compressed-5199253

Step 5: Match the Lighting

You may notice that your subject and the new background have different light sources. This can be difficult to adjust, so it’s better to choose a background with a similar light source. In our example, you can see in the background that the light source is to the left (the shadows fall to the right). However, in the subject, the light source is more top down.

This can be adjusted by introducing lighting and shadows. To do so:

  1. Select Adjustments then Exposure.
ott-how-to-change-background-image-using-photoshop-24-compressed-6869259
  1. Press Ctrl + I to invert the mask.
ott-how-to-change-background-image-using-photoshop-25-compressed-4465409
  1. Lower the exposure, then paint using white to introduce shadows to the correct side of your subject.
ott-how-to-change-background-image-using-photoshop-26-compressed-1605820
  1. Repeat steps 1 to 3 but raise the exposure to add highlights.

Step 5: Color Match Your Images

At this point, you should have your subject nicely aligned on the new background. However, you will notice that the two images have different color tones. To fix this, you may need to:

  1. Match the colors automatically by selecting the background layer, then clicking Image > Adjustments > Match Colors. For Source select your subject. Then, click Neutralize to match the colors. Play around with the Luminance and Color Intensity sliders if necessary, then select OK.
ott-how-to-change-background-image-using-photoshop-27-compressed-2273313
  1. Alternatively, match the colors manually by adjusting the RGB levels. To do so, select Adjustments then Levels. Make sure the adjustments only affect your subject by selecting the clipping mask icon. Now adjust the red, blue, and green channel individually until the subject colors are more closely aligned with the background color.
ott-how-to-change-background-image-using-photoshop-28-compressed-5932071
  1. Finally, add a global adjustment layer to make the subject and background match each other. This can include adding grain, color filters, or vignettes to improve the cohesiveness. To add global color adjustments, the best way is to select Adjustments > Color Lookup. Then, choose a 3DLUT file in the Properties panel that looks good with your image and adjust the opacity slider to change its intensity.
ott-how-to-change-background-image-using-photoshop-29-compressed-1134077

This will take some playing around to get it perfect, but the more attention you pay to details, the better your image will look in the end.

Export Your Final Image

That’s it. Simply click File then Save As to save your final image as a JPEG. As you can see, background removal is relatively simple, but it will take a keen eye for detail to get it perfect – so don’t give up!

Original Article