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 »

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: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert composite overlay multiple images

Post 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.
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 »

How should I overlay with opacity so that I can see combined silhouette?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert composite overlay multiple images

Post 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.
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 »

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 »

Can I use -dissolve?
Post Reply