-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Passing duration
or fps
has no effect on the output GIF using PillowPlugin
#870
Comments
duration
or fps
has no effect on the output GIFduration
or fps
has no effect on the output GIF using PillowPlugin
Interesting find. Here is a small test snippet that I created to see if I can replicate this issue: import imageio.v3 as iio
# v3 imread + PillowPlugin will read all frames in a GIF by default
frames = iio.imread("imageio:newtonscradle.gif")
iio.imwrite("test.gif", frames, duration=1000, loop=0) which (on imageio v2.12.2) should produce the following GIF where each frame is shown for 1s: @ahuang11 Could you share the code you have tried with For reference, GIF supports frames at a rate up to 100 Hz (though most tools like browsers cap out at 50 Hz) and |
Oh, perhaps I got the duration mixed up when I tested in code (I thought However, |
No, I think you got that one right. The old pillow plugin added That said, I see how |
Oh, I honestly think |
Yes, it is part of the docs for the legacy plugin since we still have it here for backwards compatibility. You can force using it by setting
I like this idea; lets do it :) Would you be interested in contributing a PR for it? |
Sure, can you point me to where it would go ideally? Under |
Of course I can. It would live in The way it works under the hood is that |
Thanks! I'll take a deeper look into it tomorrow |
Made the PR #871. Let me know if there's anything I should change! |
I've tried
duration=1000
tooThe text was updated successfully, but these errors were encountered: