Page 1 of 1

Overlay multiple images

Posted: 2019-03-14T07:09:10-07:00
by pdoak
Version: ImageMagick 7.0.8-28 Q16 x86_64 2019-02-19

I am new to ImageMagick and am struggling to overlay multiple images using the command line. Each image is the same size.

I can overlay one image on top of another using:

Code: Select all

convert all.png image.png -gravity center -composite all.png        
but I am struggling to overlay more the one image at a time. Intuitively, I want to do this:

Code: Select all

convert all.png image.png image2.png image3.png ....etc -gravity center -composite all.png 


Please could someone tell me what the correct format is.

Many thanks

Re: Overlay multiple images

Posted: 2019-03-14T07:17:10-07:00
by snibgo
Instead of "-composite", use "-background None -layers Flatten". See http://www.imagemagick.org/script/comma ... php#layers

Re: Overlay multiple images

Posted: 2019-03-14T07:43:43-07:00
by pdoak
That worked! Thank you