Modifying the alpha level of each pixel from the command lin
Posted: 2014-03-09T17:52:42-07:00
Hi all, i'm pretty new to imagemagick, I have a image that is used as a shadow where every pixel has a slightly different alpha value (https://github.com/simotek/Enlightenmen ... bevels.png) is a example. I am trying to make this shadow lighter by multiplying the alpha value of each pixel by the same value eg 2 to make it twice as light so a pixel with a alpha of 32 would now have a alpha value of 64 and one with a value of 12 would have a value of 24.
So far i have only worked out how to set the global alpha value which isn't much use in this case, has anyone got a idea if this can be done with imagemagick or am i off to write a small app to do it?
Cheers
Simon
So far i have only worked out how to set the global alpha value which isn't much use in this case, has anyone got a idea if this can be done with imagemagick or am i off to write a small app to do it?
Cheers
Simon