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
Cannot write a GIF file #4543
Comments
This has actually already been fixed by #4528, but not released yet. A workaround could be to use from PIL import Image
images = []
for i in range(5):
frame = Image.open('%05d.png' % i)
images.append(frame.copy())
images[0].save('animation.gif', save_all=True, append_images=images[1:], duration=100, loop=0) |
Thanks! I guessed it was something like that, but I couldn't figure out if it was fixed already, and I wasn't able to easily install Pillow from source on Windows due to the prerequisites (and the installation manual telling me "please don't"). I'll use the workaround for now. |
Pillow 7.1.2 has now been released with the fix for this. |
Thanks! |
What did you do?
Tried to write a GIF file with Image.save() with:
All images are valid PNG images that were written with Pillow.
What did you expect to happen?
Save the opened images to a GIF file.
What actually happened?
An error occurred:
What are your OS, Python and Pillow versions?
Error occurs in all my CI tests, see also ehpor/hcipy#67.
The text was updated successfully, but these errors were encountered: