b284293c18b6bcdafe2bda989c5e0a084d1acbd1
Since [1] images uploaded through the website builder that are neither GIF nor SVG are converted to the WEBP format by default. The upload of product extra images does not follow this rule. Adding the extra images is done through its own specific route instead of putting the images inside the DOM before the save, it therefore does not run though the general image tools code. This commit converts the uploaded product extra images to WEBP before saving them into the records. It is achieved by following the same approach as when uploading a WEBP in the backend [2], before calling the `/shop/product/extra-images` RPC. The fix is not done by replacing the custom route by an update of the DOM with the images because a full page rendering from the server is needed when adding extra images. Steps to reproduce: - Edit a product through the website builder - Add a JPG extra image - Save the page to leave the website builder - Check the image content => Image was a JPG instead of WEBP. [1]: https://github.com/odoo/odoo/commit/0449fe85cb0e1d639a4e1aeba26e90906f79254d [2]: https://github.com/odoo/odoo/commit/40955397658e4bf858e969668079d0c6a4cef43b task-3460171 closes odoo/odoo#134037 X-original-commit: f970147a2113608d18b47c6f59de6c6338bb2f43 Signed-off-by: Robin Lejeune (role) <role@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%