diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-06-04 15:10:48 +0200 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-06-04 22:14:13 +0200 |
| commit | 86d304fdb0c93fa3af0f2649882304c0ddabe896 (patch) | |
| tree | 904f5e2ae3ac317b37e391badc87b1b8604ee975 /addons/web_editor/controllers/main.py | |
| parent | 08cda70147bb8160136756b5175513bcd35aff75 (diff) | |
[IMP] tools: prevent unnecessary image processing
Both for performance and to avoid reducing the quality of an image in unexpected
situations.
- avoid applying useless operations in the first place
- do not count an operation if it had no effect
- allow quality 0 as a safe default that does not forcefully re-save the image
PR: #31208
Diffstat (limited to 'addons/web_editor/controllers/main.py')
0 files changed, 0 insertions, 0 deletions
