Daily updates from Odoo
Monday, April 29, 2019
1 change · master
Enhancements to existing features
Images now keep their original proportions when resized, avoiding unwanted white borders and visual distortion across Odoo. The update also improves favicon handling, image validation, file size support, and consistency of image display in website, web, product, HR, mail, payment, purchase, and live chat areas.
Original PR description
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…
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