dognose wrote: ↑2019-09-16T07:51:49-07:00Any ideas how to adjust that?
Another method for achieving this result would be to create a transparent canvas first, then read in the main input image, then the shamrock mask. imageMagick's default behavior when doing a "-composite" operation with three inputs is to use the third image as a mask, so a command like this...
Code: Select all
magick xc:none input.jpg shamrock.gif -resize 400x300 -gravity center -composite out.gif
... should output the orange flower image in the shape of the shamrock mask on a transparent background.
That transparent layer "xc:none" starts as a 1x1 canvas, so the "-resize" makes it 300x300. Since it's the first layer, the rest of the composite follows its dimensions, etc.
This command should work exactly the same way with IM v6 by using "convert" instead of "magick".