diff options
| author | ThanhDodeurOdoo <tso@odoo.com> | 2018-09-03 16:12:59 +0000 |
|---|---|---|
| committer | Nans Lefebvre <len@odoo.com> | 2019-06-13 16:05:34 +0000 |
| commit | 66e2aeb6606082364286f788a29f61e3c349b31b (patch) | |
| tree | 41b1c5218044580f2f7246e001c71176b3b5727f /addons/web_editor/static/src/xml/editor.xml | |
| parent | ec8c66991d0612f8290ec055634adc1eccf153a7 (diff) | |
[FIX] tools: image.crop_image default type fix
Backport of fa39019ee1b.
If crop_image is called without a default format, it would try the default,
'PNG', to save the result and crash at save when processing non-PNG images.
For example, if a jpeg image was in CMYK colors.
Here it will still crash non-gracefully when failing to save, but the default
should almost always work; if it doesn't it means we failed to detect the format
of the stream, so it is unlikely that we could save the image anyway.
opw 2009029
closes odoo/odoo#34088
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/xml/editor.xml')
0 files changed, 0 insertions, 0 deletions
