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
To use image_resize_image function import tools library from openerp package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 Comments