Create a series of images with progressive blending between 2 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
Daedalus
Posts: 2
Joined: 2017-01-29T05:30:56-07:00
Authentication code: 1151

Create a series of images with progressive blending between 2 images

Post by Daedalus »

Hello to everyone, I have just discovered ImageMagick :)
I like the software and I will try to study it thoroughly, but now I need urgently (in 1-2 days) to do something and I would like to be helped by someone more experienced.

My problem is: I have two images (A and B), and I would like to obtain a series of images with a progressive blending of these 2 images, from 0 to 100%. For instance, I would like to obtain 001.jpg (99% A, 1% B), 002.jpg (98% A, 2% B), etc.

After I will use these 100 images to obtain a video with a progressive transition between the images. Note that even if there is a way to directly obtain the video, I still would like first to learn how to obtain the series of images.
I'm using Windows version of IM.

Anyone could help me?
Thank you!

EDIT: I've already tried the solutions described here:
https://ubuntuforums.org/showthread.php ... 996&page=1
and I've read a bit of IM help, but looks too complicate to understand it in a few days... I just managed to convert from png to jpg :P
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Create a series of images with progressive blending between 2 images

Post by Bonzo »

I see you comment: " Note that even if there is a way to directly obtain the video, I still would like first to learn how to obtain the series of images."

You could check out http://www.imagemagick.org/script/comma ... .php#morph although there is not a lot of control
Daedalus
Posts: 2
Joined: 2017-01-29T05:30:56-07:00
Authentication code: 1151

Re: Create a series of images with progressive blending between 2 images

Post by Daedalus »

Thank you Bonzo, I've tried:

Code: Select all

convert A.jpg B.jpg -morph 100 image.jpg
and it works :D
Post Reply