Saturday, 29 June 2019

adobe photoshop - Converting grayscale shades into alpha channel


I have a gray-scale image. I need to convert gray-scale tones to transparency data in alpha channel using Adobe Photoshop. Say if the area is black, then no transparency. The white areas will be converted to full transparent pixels in alpha channel.


How to do it?


Update:


This is sample file, which I made by Fireworks. This sample is a result which I would like to achieve in Photoshop.


Sample


If you open this PNG in Photoshop, you will see what I mean.



Answer



Create a totally black layer (raster or vector). Then...


Layer > Add Layer Mask

Will add a totally white mask to your layer. This will be the alpha channel. When you watch channels (by clicking the Channels tab next to Layers) you will see this alpha channel as


Layer 0 Mask

Now you can copy-paste the grayscale image (or any channel) to this and there you have it. Use CTRL + I to invert it.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...