How to create a GIF with 2 PNG files (command line)?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
pigeon33
Posts: 9
Joined: 2015-11-15T00:15:37-07:00
Authentication code: 1151

How to create a GIF with 2 PNG files (command line)?

Post by pigeon33 » 2016-06-03T04:47:13-07:00

Hello,

Do you know if it is possible to create an animation with 2 PNG files?

Let's say file1.png is a picture of a smiley happy and let's say file2.png is a picture of a smiley angry...

I would like to know if it is possible by using a command line to make an animation (a .GIF file) with file1.png and file2.png...

Moreover is it possible to loop this animation?

file1.png is visible x seconds >> file2.png is visible x seconds >> loop

Thank you in advance for helping me...

M.

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

Re: How to create a GIF with 2 PNG files (command line)?

Post by snibgo » 2016-06-03T05:05:32-07:00

For starters, try this:

Code: Select all

convert -loop 0 -delay 100 in1.png in2.png out.gif
snibgo's IM pages: im.snibgo.com

pigeon33
Posts: 9
Joined: 2015-11-15T00:15:37-07:00
Authentication code: 1151

Re: How to create a GIF with 2 PNG files (command line)?

Post by pigeon33 » 2016-06-03T18:24:27-07:00

Hi Snibgo,

It works perfectly...

Thank you very much for your help!

M.

Post Reply