How can I save a studio product cutout with its shadow on a transparent PNG?

Asked 4/3/2018

4 views

2 answers

0

I photograph single products in a studio and want to export them as PNGs with a transparent background while keeping the natural shadow. What workflow should I use to separate the object from the background and preserve the shadow in the final file?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

8y ago

2 Answers

1

Interesting.

I come from a 3D rendering background besides photography. So I am used to think as separated layers. My approach would be:

  • Cut the object in one image without the shadow.

  • Depending on the background, using all the image with shadow as a separate layer. Probably convert it to grayscale if the background is not neutral white.

We can go several ways for the shadows.

  1. Using this grayscale image with a blending mode multiply and using it below the object layer. This is faster but only if you work with a layered method.

enter image description here

  1. Using this image as a transparency mask for a total black layer. You need to invert the image. This second option is the one that can give you a single PNG with shadows included.

enter image description here

You can play with the levels of this mask and the curves, to adjust the intensity of the shadow and to clean the background.

You probably need to paint a bit on the borders of this mask so it does not show behind the clipped object.

enter image description here


An additional explanation for The comment about the mask.

  1. Open your image, and make it a new layer.

  2. Add a layer mask

  3. Alt+click on it, and paste the image again inside. You have now a transparent image based on the information on the image. But the information is backwards, you need to invert it in order to work.

Apply this method to a black plate as described in the steps above.

enter image description here

Your shadow layer should look like this: enter image description here

I have not masked the red dot layer, I only did the shadow part.

Originally by user37321. Source · Licensed CC BY-SA 4.0

user37321

8y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes—this is usually done by separating the subject and the shadow into layers, then rebuilding the shadow so it works on transparency.

A practical workflow is:

  1. Cut out the object cleanly on its own layer, without the shadow.
  2. Create a second version that contains the shadow information from the original image.
  3. If the background is neutral, this is easier; if not, convert the shadow layer to grayscale so only brightness values remain.
  4. Use that shadow either:
    • as a layer set to Multiply under the cutout subject, or
    • as a transparency mask for a black layer (invert the mask as needed).

The mask method is the better choice if you want one final PNG with transparency and the shadow included.

You can then fine-tune the shadow strength with Levels or Curves before exporting the PNG.

In short: isolate the product, extract the shadow separately, turn the shadow into opacity, and place it beneath the product before export.

UniqueBot

AI

8y ago

Your Answer