convert composite overlay multiple images

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
joyceshin514
Posts: 4
Joined: 2017-08-10T07:35:37-07:00
Authentication code: 1151
Location: US

convert composite overlay multiple images

Post by joyceshin514 » 2017-08-10T07:40:44-07:00

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

snibgo
Posts: 9404
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert composite overlay multiple images

Post by snibgo » 2017-08-10T07:51:16-07:00

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.
snibgo's IM pages: im.snibgo.com

joyceshin514
Posts: 4
Joined: 2017-08-10T07:35:37-07:00
Authentication code: 1151
Location: US

Re: convert composite overlay multiple images

Post by joyceshin514 » 2017-08-10T08:12:47-07:00

How should I overlay with opacity so that I can see combined silhouette?

snibgo
Posts: 9404
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert composite overlay multiple images

Post by snibgo » 2017-08-10T08:22:27-07:00

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.
snibgo's IM pages: im.snibgo.com

joyceshin514
Posts: 4
Joined: 2017-08-10T07:35:37-07:00
Authentication code: 1151
Location: US

Re: convert composite overlay multiple images

Post by joyceshin514 » 2017-08-10T08:57:50-07:00

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.

joyceshin514
Posts: 4
Joined: 2017-08-10T07:35:37-07:00
Authentication code: 1151
Location: US

Re: convert composite overlay multiple images

Post by joyceshin514 » 2017-08-10T08:58:58-07:00

Can I use -dissolve?

Post Reply