summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorlen-odoo <len@odoo.com>2018-05-16 09:11:42 +0200
committerlen-odoo <35492570+len-odoo@users.noreply.github.com>2018-05-18 13:33:30 +0200
commit8194e2cb80def6b1943a88d57fdc66c8eddc1660 (patch)
tree1280fa80bbf09a917a514d56eb202a417dab7089 /addons/web/static/src/js/views/basic
parentcb4c2be37748b92e97b32b5c8defce7b7c1e6bd9 (diff)
[FIX] web: correctly handle admin svg images in channel
When posting an svg image, Odoo tries to resize it for thumbnailing (like any image). However this is of no interest since this is a vectorial file format, and furthermore it distastefully makes the image library Pillow crash, since it only supports raster formats. The result would be a broken thumbnail instead of the image itself. By not setting the thumbnail size if the mimetype contains svg, we ignore the thumbnailing altogether. Note that this only applies to the admin user, as otherwise the file is treated as binary and thus no thumbnailing occurs anyway. opw 1841153
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions