Converting Luminance to Transparency in Photoshop
Posted March 29th, 2007 @ 10:42am by Erik J. Barzeski
A while back I signed my name on a postcard with a black sharpie. I scanned it, desaturated it, and adjusted the levels in Photoshop to white out the background and make the darkest black true black. All is well.
Now, I'd like to use the signature as a semi-transparent watermark on some of my images, but I'm not sure how to convert the luminance to an alpha mask. Essentially, the parts that aren't true black should let some of the background color through.
How can this be done? I'm sure the answer is simple, but I've not discovered the method.
Posted 31 Mar 2007 at 12:30pm #
Can't you just invert it and use it as an alpha mask on another layer? Create a new layer and fill it with the color you'd like the signature to be in. Then select the layer with your signature, Invert it so the black becomes white and command+click on the thumbnail of the layer to select the whiteish area. Then select the new layer you created in the layers palette and hit the "New mask" button which will create a mask out of your selection. Then you'll have a properly masked signature which you can create a transparent PNG or similar from for easy re-use.
Or you could probably just let the signature layer be as it is, black on white, and then use the "Multiply" layer mode when overlaying it on a photo. And optionally adjust the opacity.
Posted 31 Mar 2007 at 12:52pm #
Jesper helped me figure it out. Here's the steps I followed:
That seemed to do the trick, and is pretty similar to what you suggested, Frode.
Posted 12 Apr 2007 at 4:16am #
I was going to say, apply the signature as a mask to a dynamic color layer, so you can make it black, green, red, or whatever color you like at any time, but you seem to have figured it out.