Reputation: 811
I want to generate image with ImageMagick by this algorithm:
I wrote it, but I cant send first result to second command. Can you help me?
It's working:
composite -compose CopyOpacity mask.png img.png masked.png
composite -geometry +5+5 masked.png bg.png result.png
It's not working:
composite -compose CopyOpacity mask.png img.png -geometry +5+5 bg.png result.png
Upvotes: 1
Views: 1017
Reputation: 3140
type in your console, with all files in the same directory and being in the same directory:
composite -compose CopyOpacity mask.png img.png masked.png && composite -geometry +5+5 masked.png bg.png result.png
Upvotes: 1