-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displaying animated GIFs with Python #626
Comments
From the library usage point of view, you essentially want to create an offscreen canvas, and then swap images and send one at a time. and use the off-time to fill the next image and swap. Have a look at the examples of how to use the SwapOnVSync(). |
I got this working, I've posted my .py in a Gist here if it helps anyone: https://gist.github.com/Simon-Ince/910c440eb34bb722afa90853ecfb1d85 It needs some tweaking, gifs have timings for each of thier frames and I haven't taken this into consideration. |
Unlike C++, when displaying an animated GIF with Python, the image displays but only the first frame. Does this library provide a solution for this or should I look to add this functionality to the code myself? If so, what would be the best way to do this? Through GraphicsMagick maybe? Any hints would be greatly appreciated.
I took a look at a previous issue, but it's two years old, and I thought maybe there's a solution now.
Thanks!
The text was updated successfully, but these errors were encountered: