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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post by anthony »

the same thing appears to be happening with -dispose
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
Post Reply