summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2019-04-26 10:55:13 +0000
committerSébastien Theys <seb@odoo.com>2019-04-29 13:45:03 +0000
commit433d0070755b9917e46827c2ad1c258cfe31f804 (patch)
treed3ed4fc444c3f6548ac9babf011e6174a9a4c76d /addons/web/static/src/js/views/basic/basic_controller.js
parent8269f855136050c9139352ed71bc75f81899e255 (diff)
[IMP] tools,web_editor,web_unsplash: improve image optimize for web
This commit introduces the possibility to resize and to select the quality when optimizing an image for web. This will be used by the media dialog in a future commit. The arbitrary resolution limit of 42e6 has been increased to 45e6 to fit some of the biggest images we might get from Unsplash, and this value has been moved into a variable so it can be customized. The mimetype computation has been moved after the image processing because in a next commit the operation could return the image in a different format than what was originally given. Eg. BMP -> PNG, or unsupported format -> JPEG. task-1958000 PR: #31811
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions