-
-
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
Change in behavior with JPEG Images in 11.0.0 #8472
Comments
Is this a bug or feature? It looks like Pillow got more strict in verifying that |
That is a good question. Serializing an image and reloading it changes how it looks. I wasn't sure if this check for the |
Is there a reason you want to pickle the |
The serialization is happening in a different part of the code. This example is for simplicity in reproducing. |
I've created #8476 as a possible solution to this - rather than ignoring the fact that |
The following code that worked in Pillow 10.4 no longer works with Pillow 11.0.
Error stack.
This has been traced to the following change in src/PIL/JpegImagePlugin.py
Pillow 10.4.0
Code
Pillow 11.0.0
Code
Suggested fix
Note that the following hack does workaround the issue in 11.0.
The text was updated successfully, but these errors were encountered: