Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
convert tmp.png test-gradient.png -channel A -compose Multiply -composite out.png
Now, I am just getting an almost white image. Can you please help me?
Maybe also a link to the great collection of IM examples for Version 7 would help me, I cannot find it, only the 6.x edition.
Thanks in advance
Oliver
Both images do have an alpha channel with transparent regions, and I want to combine them, i.e. let the image of the woman fade to transparent at the bottom part.
The result should look like this: https://imgur.com/mV5StA8
I cannot track back my old im version, must have been some homebrew'd 6.x version, now I have
Well, my gradient is some hand-drawn custom shape, and as far as I understand your command, this would create a generic gradient?
And if you look at my uploaded pictures, I really want a pixelwise multiplication of alpha values.
BTW, was my command (which looks way simpler than your suggestions), was it wrong? It did what it should for me...
olidem wrote: ↑2017-12-10T03:51:16-07:00But my installation was upgraded to 7.x, and not it does not work anymore, neither with nor without the +channel.
I can get identical results to your first example command using your sample images and running this command with IM 6.9.9...
magick tmp.png test-gradient.png +swap -channel A -compose dstin -composite out7.png
That gives me a result identical to your original command and the IM6 command I used above. I understand the alpha channel handling has been reversed in IM7, so if I encounter an issue with alpha, I can often resolve it by reversing or negating my mask, or reversing the order of the input images. Maybe this approach will be helpful.