Posted: 2006-08-01T21:48:25-07:00
Whats the problem? You seem to know what you want to do!
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://download.imagemagick.org/discourse-server/
https://download.imagemagick.org/discourse-server/viewtopic.php?t=7106
That is the input is a mask without any alpha channel.It is vital that the source image does NOT have a matte channel.