Is there an utility for converting all black-white and grayscale images from certain folder to the same images with adjusted alpha channel?
For example, for pixel (r:50, g:50, b:50, a:0) I would like to get (r:50, g:50, b:50, a:50) and (r:50, g:50, b:50, a:205) (inverse). Of course, this conversion is suitable only for image formats with alpha channel support (not JPG).
Or how can I do it with photoshop?
Background: I am a programmer and I am finding a way to do it without coding if it's possible.