Mobile app version of vmapp.org
Login or Join
Kaufman565

: Advanced shadow and highlight extract with transparency I want to blend this image dynamically over a background. So, I want to extract it as a PNG with transparency. I photographed the ship-in-a-bottle

@Kaufman565

Posted in: #AdobePhotoshop #Mask #Transparency

I want to blend this image dynamically over a background. So, I want to extract it as a PNG with transparency.

I photographed the ship-in-a-bottle on a surface that is roughly the colour of the background I want to blend onto, so it doesn't need to be absolutely perfect (the transparency would be very difficult, but I'm not going to worry about that!

The part I'm interested in is the shadow. Does anyone have any good ideas of how to extract it as a flat-ish colour with all the detail in the alpha channel? So that the shadow should work over basically any other surface? It would be nice to retain detail in the shadow, but not too much of the detail from the grain off the stone that it was photographed on.

My best bet right now:


Roughly cut it out of the background
Desaturate, ramp up
brightness/contrast to create a black/white image that can be used as
a mask
Use this mask on the original image again to retain the
colouring of the shadow
Play with the colouring until it looks
correct over various textures.


Problem is, I'm not sure this will retain the quality from the original image. It would also be nice to retain some of the bright refracted light as well as the shadow!

I'm using Photoshop CS3.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Kaufman565

2 Comments

Sorted by latest first Latest Oldest Best

 

@Jennifer810

Scott is correct. Your best bet is to rephotograph on a plain background, either white or green would work. The main challenge you have with your existing image is the texture, especially in the shadow that you want to retain.

The tool you need is Select > Color Range, which is like the Paint.Net "Color to Alpha" Drakel refers to, only on steroids and with a great deal more flexibility. Even with the super-compressed image posted here, I was able to get this far in a couple of minutes using Select > Color Range with Range restricted and Localized Color Clusters turned on, followed by a little bit of clean-up on the outer parts of the mask with a black brush. On the high resolution original this would be a lot easier.



Russell Brown introduced the use of the enhanced masking features in CS4 in a few excellent videos. Go to his tips page and scroll down to the CS4 section. Watch them from the bottom up, starting with "CS4: Masking Workflow Techniques".

10% popularity Vote Up Vote Down


 

@Margaret771

Unbelievably, I have found a free program called Paint Dot Net to work better for this than Photoshop (http://www.getpaint.net/)

There is a plugin called "Color to Alpha" that will do what you are asking. It renders certain areas of an image into alpha values based on hue, saturation, and lightness. This is what I always use for similar applications.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme