-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
ValueError: images do not match #7777
Comments
Thank you for reporting an issue. Please include a self-contained, copy-pastable example that generates the issue if possible. Be concise with code posted. Guidelines on how to provide a good bug report: Bug reports which follow these guidelines are easier to diagnose, and are often handled much more quickly. Please include code that reproduces the issue and whenever possible, an image that demonstrates the issue. Please upload images to GitHub, not to third-party file hosting sites. If necessary, add the image to a zip or tar archive. The best reproductions are self-contained scripts with minimal dependencies. |
Looks like this commit is the culprit: 55c5587 |
Yes, that would be the cause - but rather than just undoing that change, it would be better to adjust it, to both reduce filesize and to fix your problem. The quickest way of understanding how to do that would be for you to post a self-contained example of your problem. |
Here's a repo to reproduce the bug: |
Thanks. 0.png, 4.png and 5.png are 120px wide. The images you are using to create your GIF are not all the same size. So, as error says, the images do not match. If you change them to all be the same size, the error goes away. |
Got it, so it should have raised that exception in previous versions too. Thanks! |
Actually, looks like animated GIF format supports images of different sizes. Should Pillow also? |
I've created PR #7779 to resolve this. |
Without changing code, only upgrading from 10.1.0 to 10.2.0, started getting this error when generating animated GIFs:
The text was updated successfully, but these errors were encountered: