Page 1 of 1

Easily blend multiple images?

Posted: 2010-05-11T20:42:59-07:00
by fracai
I have several (hundreds) of images that I'd like to average together equally. I know I can do this two images at a time using a shifting blend argument ranging from 1 to 100.
A first attempt over 132 images went something like the following (merge.jpg starts out as a blank page):

Code: Select all

for P in input/*.jpg ; do C=$[C+1]; B=$[C*100/132]; composite -blend $B merge.jpg "$P" -matte merge.jpg ; done
Ideally I'd run IM in one shot to avoid having to specify the total number of images and, hopefully, more equally weight each image.

Any tips?

Re: Easily blend multiple images?

Posted: 2010-05-11T20:46:21-07:00
by fmw42
convert image1 image2 image3 image4 ... imageN -evaluate-sequence mean averageresult

will average all images together

see sequential formula at viewtopic.php?f=3&t=16143

Re: Easily blend multiple images?

Posted: 2010-05-11T20:56:18-07:00
by fracai
Excellent! Thanks very much.