diff options
| author | Richard Mathot <rim@odoo.com> | 2017-07-06 14:58:23 +0200 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2017-07-07 10:11:40 +0200 |
| commit | 63ad8b95976ef0514168cbfb101a370bd857be87 (patch) | |
| tree | dfffffeecfd056d2f83f1e66dcff0373a0d434f5 /addons/web/static/src/js/views/basic | |
| parent | a1f1f85be2039b6f3443e2f1b504373f4e62e4d8 (diff) | |
[FIX] tools: prevent crashes with Pillow >= 4.2.0
From Pillow 4.2, it is forbidden to save RGBA images as JPEG
( https://github.com/python-pillow/Pillow/commit/e4d6223c944cf44c468cc65a560b94dfcf351a62 )
A crash was occurring when loading demo JPGs as
image_resize_and_sharpen() was silently changing image mode to RGBA.
Now we ensure that we return the original image mode.
We also avoid crashes when converting from PNG to JPG
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
