summaryrefslogtreecommitdiff
path: root/doc/python3.rst
diff options
context:
space:
mode:
authorRichard Mathot <rim@odoo.com>2017-07-06 14:58:23 +0200
committerRichard Mathot <rim@odoo.com>2017-07-07 10:11:40 +0200
commit63ad8b95976ef0514168cbfb101a370bd857be87 (patch)
treedfffffeecfd056d2f83f1e66dcff0373a0d434f5 /doc/python3.rst
parenta1f1f85be2039b6f3443e2f1b504373f4e62e4d8 (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 'doc/python3.rst')
0 files changed, 0 insertions, 0 deletions