2

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.

Ship

4
  • 1
    +1 for just photographing something you want the image of instead of agonizing over how to create it properly. May 27, 2012 at 13:10
  • 4
    Can you photograph it again? Shooting it on an odd color background, like a piece of fluorescent construction paper (pink or green) would make extraction 10000 times easier because you could use the color as a key. Basically, like a green screen extraction.
    – Scott
    May 27, 2012 at 17:02
  • 1
    That's a good idea. Never tried green-screening before. I photographed it on that surface because it's close to the colour of sand, which I'm compositing onto (dynamically). But using a colour key could work nicely... May 27, 2012 at 17:45
  • 1
    But what kind of ship name is "Etagerf" ?
    – Joonas
    May 28, 2012 at 11:24

2 Answers 2

1

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.

enter image description here

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".

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.