We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i try to load every frame of a gif by the following code
# PILLOW==9.1.0 img = Image.open('./test.gif') for I in range(img.n_frames): tmp.seek(i)
below is the test img and I find that img.n_frames gives me 2 but the actual frame number is 1,so the seek function raise an EOF error.
img.n_frames
load all the frame without any error
The following error is raised. raise EOFError("no more images in GIF file") from e
from PIL import Image img = Image.open('./test.gif') for I in range(img.n_frames): tmp.seek(i)
The text was updated successfully, but these errors were encountered:
Testing, I find that #6219 will resolve this.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What did you do?
i try to load every frame of a gif by the following code
below is the test img and I find that
img.n_frames
gives me 2 but the actual frame number is 1,so the seek function raise an EOF error.What did you expect to happen?
load all the frame without any error
What actually happened?
The following error is raised.
raise EOFError("no more images in GIF file") from e
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: