Page 1 of 1

convert composite overlay multiple images

Posted: 2017-08-10T07:40:44-07:00
by joyceshin514
Hi,

I am trying to composite multiple jpgs into one jpg. All of them are same size and I want to see patterns on one image.
I used command below and it seems it only overlayed two images in the directory. Any idea to fix?

convert -composite *.jpg result.jpg

Re: convert composite overlay multiple images

Posted: 2017-08-10T07:51:16-07:00
by snibgo
If your input jpegs are the same size, and you composite them on top of each other, only the top one will contribute pixels to the output.

Re: convert composite overlay multiple images

Posted: 2017-08-10T08:12:47-07:00
by joyceshin514
How should I overlay with opacity so that I can see combined silhouette?

Re: convert composite overlay multiple images

Posted: 2017-08-10T08:22:27-07:00
by snibgo
Jpeg pixels are opaque. That means you can't see through them. If you want them to become partly or completely transparent, then you can do that.

Perhaps you can show sample inputs, and explain what you want. You can upload to somewhere like dropbox.com and paste URLs here.

Re: convert composite overlay multiple images

Posted: 2017-08-10T08:57:50-07:00
by joyceshin514
I cannot access file sharing links for now, but what I want to do is this.

Given trajectories on the same floor map, I want to overlay all trajectories so that output image has them all combined.

Re: convert composite overlay multiple images

Posted: 2017-08-10T08:58:58-07:00
by joyceshin514
Can I use -dissolve?