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
I found it. According to the Pillow Docs, adding the loop parameter to the save call to sets the number of times the gif loops.
I found this, and he set loop=0. One might think this that would be not looping (I guess 1 is not looping), but I decided to try it. I simply added loop=0 to the call on this line (I literally just modified that line in my site-packages), and lone behold endless looping.
Presumably, we should make this configurable.
self.loop = kwargs.pop("loop", 0)
to the __init__ of PillowWriter, and then loop=self.loop to the call to save.
Bug report
Bug summary
Saving a gif using PillowWriter produces a gif that does not loop. Is there a way to make the gif loop endlessly using PillowWriter?
Code for reproduction
Actual outcome
Expected outcome
Same gif, but I want it to loop once it finishes.
Matplotlib version
print(matplotlib.get_backend())
): Qt5AggMatplotlib was installed with conda.
The text was updated successfully, but these errors were encountered: