diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2019-04-29 17:00:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-29 17:00:46 +0200 |
| commit | df189fd6ab749de47ceba35c547db4f903965016 (patch) | |
| tree | 7220eda27d4d80217eea61eee1fcb92f15c13b48 /addons/web/static/src/js/widgets/attach_document.js | |
| parent | b8dd1b2ac554715c833c88fbe53a3f2105e0f2c5 (diff) | |
| parent | 66cd46d20224ddb063f0134974d6e03224a21541 (diff) | |
[MERGE] tools, base, *: improve image tools
Merge commit for PR: #31811
The main goal is to keep the image ratio on resize (instead of adding a white border).
The opportunity is taken to also clean up the image tools.
See individual commit messages for more information.
Functional:
- Remove the white border from all images (never resize to square, keep aspect ratio)
- Prevent some images from being 3px shorter than expected
- Resize the website favicons appropriately, always encode them as ICO, add a default favicon to new websites
- Secure images going through the tools by returning an error when non-image content is given
- Incrase the max image filesize from 42e6 to 45e6 to fit some of the biggest images we might get from Unsplash
- Always return the correct mimetype/Content-Type for images
- The avatar placeholder was white displayed on top of white, now it's grey so we can actually see it
Technical:
- make image tools more consistent by merging the tools and removing duplicate code
- add tests for the image tools
- remove uncessary parameters
- remove the "ghost border fix"
task-1958000
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/widgets/attach_document.js')
0 files changed, 0 insertions, 0 deletions
