-
- Downloads
[FIX] tools: image.crop_image default type fix
Backport of fa39019e. 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>
Please register or sign in to comment