Convert, Edit, and Compose Images
convert image00008.jpeg -negate -alpha copy mask.png
convert image00008.jpeg -fill black mask.png -compose Copy_Opacity -composite new.png
Claghorn wrote:I can't decrypt that, but it looks like the "probably what I want" is merging the wheat background in, and that is most definitely not what I want. Wheat is just one example, anyone could select any background they want in their ebook reader. I want to stop the process where I can capture a .png file that has transparency which can later be displayed with pretty much any background color. The gimp "color to alpha" examples on my web page above does that perfectly.
Claghorn wrote:Thanks for the analysis. That does appear to finally get closer to gimp, but I guess I'll stick with gimp for now since the images I get with it look more like the original (maybe the 256 versus 183 issue).
Users browsing this forum: Google [Bot] and 26 guests