-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
JPEG Handling changes in PIL/Pillow #1803
base: master
Are you sure you want to change the base?
Conversation
* JPEG images cannot be saved as RGBA * JPEG images may still be of a mode that we want to convert from * Padded images are always created RGBA which breaks JPEG
I'm able to successfully generate thumbnails for jpegs without this change, can you provide more info on how to reproduce the problem? |
Hi Stephen, It looks like padded thumbnails are affected in particular. {% thumbnail product.image 350 350 True 95 0.5 0.5 True "white" %} Currently doesn't seem to generate a thumbnail, but does with the changes. Thanks, |
If I remember correctly, the problem zandeez is describing occurs with newer versions of PIL/pillow. |
Seems to be resolved Mezzanine 4.3.1, Pillow 5.3.0 |
Spoke too soon, it's not generating thumbnails for me from JPEG, even with this patch. Python 3.6.7 |
Ignore me, the patch does work I hadn't applied it correctly. Basically with the versions listed above, if thumbnailing with padding with a format that doesn't support RGBA (such as jpg) the thumbnail will not save. This patch forces jpegs to be RGB rather than RGBA which saves consistently. |
Resolves the following: