Shara
Shara

Reputation: 811

Combine commands in ImageMagick

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

Answers (1)

return1.at
return1.at

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

Related Questions