SIT - Ir Attachement Image compression
Compress images in ir attachments
Type d'abonnement: Socle |
This module extends the functionality of Odoo's ir.attachment model to automatically resize images that are stored as attachments in the system. The module provides an automated mechanism to reduce the size of image files (JPEG and PNG formats) that exceed a specified size limit.
- Configuration on job cron:
- days = only images older than x days will be compressed
- model_filter = list of models on which we want to compress attachement pictures (ex: ['helpdesk.ticket', 'res.partner'])
- Configuration in Odoo system parameters:
- sit_image_compression.binary_lenght_wanted: The maximum allowed size for images before resizing. This value can be configured through the Odoo system parameters.