In this article you will learn how to create a new field to save images into database and automatically resize that image on saving and updating existing records. For example if you have uploaded 500 X 500 image, our goal is to resize that uploaded image into 250 X 250 automatically.
How to set a specific dynamic image size in Odoo
You can also use below functions provided by Openerp/Odoo tools library to resize uploaded image into specific predefined size.
Method |
Size |
image_resize_image_big |
1024 X 1024 |
image_resize_image_medium |
128 X 128 |
image_resize_image_small |
64 X 64 |
Don,t forgot to share, keep sharing keep learning
0 Comments