Images Auto Compress
Reduce image attachment storage automatically
Images Auto Compress optimizes uploaded image attachments in Odoo so your database and filestore stay lighter without changing the normal upload workflow.
Automatic Compression
New image attachments are compressed during create and update operations.
Existing Files
Use the server action for selected attachments or enable the scheduled action for background batches.
Safe Processing
The module skips unreadable and animated images, and only saves output when the compressed result is smaller.
Supported Images
JPEG, PNG, WebP, BMP, and TIFF files are supported. Optimized output is saved as JPEG with a maximum size of 1280 x 1280 pixels.
Manual and Scheduled Compression
Compress selected attachment records manually, or activate the included scheduled action to process older attachments in controlled batches.
Configuration
No setup is required after installation. Advanced users can tune batch sizes through system parameters.
attachment_auto_compress.action_batch_sizeattachment_auto_compress.cron_batch_size
Images Auto Compress
Images Auto Compress reduces the storage size of image attachments in Odoo.
Features
- Compresses newly uploaded image attachments automatically.
- Supports JPEG, PNG, WebP, BMP, and TIFF inputs.
- Converts optimized output to JPEG.
- Resizes large images to a maximum of 1280 x 1280 pixels.
- Skips animated or unreadable images.
- Provides a server action to compress selected existing attachments.
- Includes an optional scheduled action for background batch compression.
Installation
Install the Python dependency before installing the Odoo module:
pip install Pillow
Then install the module from the Odoo Apps menu.
Usage
After installation, supported image attachments are compressed automatically during upload or update.
To compress existing image attachments manually, select attachment records and run the Reduce Selected Images action.
To process existing image attachments over time, activate the scheduled action named Images Auto Compress: Existing Images Technical Notes ---------------
The module only writes compressed data when the resulting file is smaller than the original. PNG transparency is flattened onto a white background because the optimized output format is JPEG.
Please log in to comment on this module