Page 1 of 1

-delay not setting delay on later read in GIF images.

Posted: 2010-08-18T18:19:04-07:00
by anthony
Basic use of -delay failing..

This is the very very Animations Basics example

Code: Select all

  convert -delay 100  -size 100x100 xc:SkyBlue \
          -page +5+10  balloon.gif   -page +35+30 medical.gif  \
          -page +62+50 present.gif   -page +10+55 shading.gif  \
          -loop 0  animation.gif
the resulting image has NO delays!

Looking further...

Code: Select all

convert -delay 100  -size 100x100 xc:SkyBlue \
          -page +5+10  balloon.gif   -page +35+30 medical.gif  \
          -page +62+50 present.gif   -page +10+55 shading.gif  \
          -loop 0 -verbose info: | grep -i - C1 delay

Code: Select all

  Dispose: Undefined
  Delay: 100x100
  Iterations: 0
--
  Artifacts:
    delay: 100
    loop: 0
--
  Artifacts:
    delay: 100
    loop: 0
--
  Artifacts:
    delay: 100
    loop: 0
--
  Artifacts:
    delay: 100
    loop: 0
--
  Artifacts:
    delay: 100
    loop: 0
shows that only the FIRST image has a delay. Even though the global artifact is present to set the delay for any created/read image.

Repeating this with...

Code: Select all

convert -delay 100  -size 100x100 xc:SkyBlue \
             rose: -verbose info: | grep -i -C1 delay

Code: Select all

  Dispose: Undefined
  Delay: 100x100
  Iterations: 0
--
  Artifacts:
    delay: 100
    verbose: true
--
  Dispose: Undefined
  Delay: 100x100
  Iterations: 0
--
  Artifacts:
    delay: 100
    verbose: true
Seems to indicate that the artifact setting is only being applied to Builtin images, and not to read in GIF images.

Re: -delay not setting delay on later read in GIF images.

Posted: 2010-08-18T18:22:02-07:00
by anthony
the same thing appears to be happening with -dispose

Re: -delay not setting delay on later read in GIF images.

Posted: 2010-08-19T15:23:21-07:00
by magick
We can reproduce the problem you reported and have a patch in ImageMagick 6.6.3-8 Beta available by sometime tomorrow. Thanks.