Page 1 of 1

Problem to set different delay for animation gif

Posted: 2007-05-31T23:31:03-07:00
by lavige777
Hello,
I need to create animation gif and delays between frames are different.
I try
convert -delay 100 1.gif -delay 1000 2.gif -delay 2000 3.gif anim.gif
But as I can see delay for 1-st frame is the same as for 2-nd = 1000, but for other frames all work properly.
What is the problem with delay for 1-st frame?
And how can I set delay for 1-st frame?
Thanks, Vitaly

Re: Problem to set different delay for animation gif

Posted: 2007-06-04T20:18:46-07:00
by anthony
You may have a old broken version of IM. I reported such a problem in the earily versions of IM v6. It was fixed quite quickly when found.

Re: Problem to set different delay for animation gif

Posted: 2007-06-06T01:10:59-07:00
by lavige777
anthony wrote:You may have a old broken version of IM. I reported such a problem in the earily versions of IM v6. It was fixed quite quickly when found.
Thanks Anthony, I will update ImageMagick and check it out ;)

Re: Problem to set different delay for animation gif

Posted: 2008-06-04T01:32:48-07:00
by Lithium
I wanted to say that this problem still persisted but would decide to check it with the latest version of ImageMagick (6.4.1).

Code: Select all

imconvert ( rose: -set delay 100 ) ( rose: -negate -set delay 10 ) ( rose: -flip -set delay 100 ) rose.gif
By viewing the gif file with ACDSee 9, I found that two first frame have equal short duration, i.e. problem seems to remain. But then, IE, Firefox and XnView showed the result close to expected.

So, is the problem in the viewer, not ImageMagick? ACDSee have always experiencing problems with animated gifs...

Re: Problem to set different delay for animation gif

Posted: 2008-06-05T00:08:36-07:00
by anthony
I checked with the latest beta version, and it comes out correct in the GIF file.
Only the center image has a delay of 10 centi-seconds.

Check using identify with a %T format escape...
Or use the gif2anim script in IM Examples script area
http://imagemagick.org/Usage/scripts/