How to change the background of a photo and add a natural shadow

Replace a photo background in PicEdita, then paint a close contact shadow and a softer cast shadow to ground a product in the new scene.

What each shadow changes

New background only
Contact shadow at the base
Contact shadow and soft cast shadow

Step by step

  1. Place the subject on the new background

    Open the background JPG in PicEdita. Choose File → Place Embedded… and select the transparent bottle PNG. Keep width and height linked, set the width to 75%, and confirm. Keep the bottle base on the tabletop. For your own photo, use a layer mask to isolate the subject first.

    Place the subject on the new background
  2. Paint the short contact shadow

    Select the background and create a blank layer above it, under the bottle. Name it Contact shadow. Choose the Soft Round brush, set it to 30 px and use a warm dark brown such as #55321E. Paint a short line right under the base. Set the layer opacity to 70% for this sample.

    Paint the short contact shadow
  3. Extend a softer cast shadow away from the light

    Create another blank layer just above the background, beneath Contact shadow. On Cast shadow, use the same color and a larger Soft Round brush, around 85 px. Start at the base and paint down and to the right, away from the upper-left light. Set the layer opacity to 36%. The shadow should fade into the tabletop and its texture should still show.

    Extend a softer cast shadow away from the light
  4. Compare the layers and export

    Use the eye icons to hide both shadows, then show Contact shadow alone, and finally show both. Check that the strongest shadow sits at the base. With both visible, choose File → Export → Export As…, select PNG and export at 768 × 512 px.

    Compare the layers and export