In this article, you will learn how to dynamically resize images on Creating (Saving) or updating (Existing) records in Odoo14. One point to be noted here is that the "image_resize_image" function (to resize an image) has been excluded from Odoo14, it only works with Odoo8.
How to Resize Image Dynamically on Create and Write Event
Read More: How to Resize Image in Odoo8
Enjoy Free Tools: Get Free Online Image Resize Tool
Below are the steps to resize an image
- Convert base64 encoded image into image (to resize an image) by using odoo.tools.ImageProcess
- Apply resize() function (How Python Function Works) on above processed image
- Convert resized image into base64 encoded format by using, image_base64()
Read More: How to Create Image Field in Odoo
0 Comments