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...
Code: Select all
convert tmp.png test-gradient.png -channel A -compose dstin -composite out6.png
Then to get that to work using IM 7.0.7 I just have to add "+swap" after the input images to reverse their order like this...
Code: Select all
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.