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
This code creates a 40 frame animation, 20 frames of a red square and 20 frames of a blue square which run at 20 fps, which should result in a 2 second animation:
What did you do?
Attempted to make an animated PNG from a set of images.
What did you expect to happen?
To have a working animated PNG, with the right duration/frame rate.
What actually happened?
The resulting animated PNG only has two frames, instead of 40 frames, and with a very high frame rate.
What are your OS, Python and Pillow versions?
This code creates a 40 frame animation, 20 frames of a red square and 20 frames of a blue square which run at 20 fps, which should result in a 2 second animation:
GIF:
PNG:
These images actually only contain 2 frames, not 40.
One interesting thing to note is the frame rate of these images shown by
ffprobe
:This is confusing to me, as while the GIF duration is roughly correct, the frame rate is not 100 fps.
The text was updated successfully, but these errors were encountered: