You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use optional argument duration (Reference), it accepts float for all frames or list for one value of each frame.
Pausing the GIF between loops can be done via this tricky method:
importimageio.v2asiioframes=iio.mimread("imageio:newtonscradle.gif")
# The default duration of each framedefault_duration=50# The lagginglag=1000# Pause the GIF by extending the duration of the last frameduration= [default_duration] * (len(frames)-1) + [lag]
iio.mimwrite('paused.gif', frames, loop=4, duration=duration)
Note that, you may find out the frame duration with imageio.v3.immeta:
I use
imageio.mimsave("fname.gif", frames, loop=4)
to save a GIF from python plots. I would like to add a pause between each loop. Is this possible?The text was updated successfully, but these errors were encountered: