-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Cannot write JPG images anymore with Pillow 4.2 #9585
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
Comments
What version of Matplotlib? Something like this went by recently.... |
This is documented in pillow's release notes https://github.com/python-pillow/Pillow/blob/master/docs/releasenotes/4.2.0.rst#removed-deprecated-items |
This happens with matplotlib 1.5.1 (python 2.7.14). |
Can you try with 2.1? |
this seems to have been fixed somewhere between 1.5.3 and 2.1 |
Fixed by #5324 which is included in 2.0 @sebastienaubry Thanks for taking the time to report this. It should work if you update to at least 2.0. |
Hi, |
Hi,
Due to issue python-pillow/Pillow#2609 , I cannot save anymore my Matplotlib graphs to JPG format (with the alpha layers merged together) since Conda upgraded Pillow to version 4.2. This used to work before:
Downgrading to Pillow 4.1 (
conda install pillow=4.1
)makes this code work.Is it possible to force the merge of the alpha channel before or when writing? Adding
, transparent=False
tosavefig
did not help.I guess that feature python-pillow/Pillow#2663 will fix this problem.
Thanks.
The text was updated successfully, but these errors were encountered: