- Compress images based on a set of rules
- Flexible rules for compression:
- By model where images are uploaded
- By mimetype; a regular expression that allows to filter what type of images to compress
- By size; it allows to compress images having a bigger size than the configured size
- Compress attachments newer or older than specific dates
-
Configuration: Setup a compression rule
- Select the models where image attachments to be compressed.
- Set the source format and destination format (NOTE: The source format should be a regular expression of mimetypes e.g. images/.*bmp.*).
- Set the optional minimum size of attachment.
- Set the optional newer than/older than days to compress.
- Set the quality of the compressed image (value between 0 and 100 where the larger the value, the higher the compression but the lower the quality)
-
In Odoo, storage is done by content. Thus, if the same image was uploaded twice, it will be saved on the disk once.
Thus, there is an option to match all similar images, compress them and delete the uncompressed images.
To activate this feature, check the "Replace All" - If you want the scheduled action to run this compression rule daily, keep it active.
Compression Rule
-
Scheduled Action
- Upon installing the module, a daily scheduled action "Run attachments compression rules" is added automatically
Scheduled Action
-
Add Images:
Add some image attachments in the models.
In the following example, I selected the employee model in my compression rule. So, I am adding a BMP image there.
Add attachments
-
Run the compression rule:
Go to the corresponding compression rule and run it. The Images satisfying these rules should be compressed.
The system will show a pop up with the details of the compression:
compressed images and total size reduction
Run Rule
-
Check results:
Go back to the model where the image was uploaded and verify the results.
Download the image and check the size reduction.
Check Results
-
File Store:
Notice that upon running a compression rule or when the scheduled action runs them,
the size of the filestore is reduced if Replace All was checked
Filestore
Azkatech Suggested Apps
Our Services
Where there is something conceived as impossible in the software
space, this is where you will find Azkatech
SAL.
We
are full-stack web & software development
professionals with the sole focus of delivering for our clients and solving the unsolvable.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
One query
I want to schedule a demo for this module.
I'm interested in version 14 of this module. I want to know things mainly:
1. Does it work on existing attachments in the system and compress them as well ?
2. What is the compression percentage we can expect on big attachments mainly?
Re: One query
Dear Nick,
Its not working as it should be
Hi,
I bought this module but its doing nothing, no impact at all.
Re: Its not working as it should be
Dear Faisal,
Please get in touch with us on info@azka.tech so have a zoom meeting and explain how it works.
In addition, if you can look into the logs, it shows when it runs. This process takes time. in the log it shows the compression ration when it run. You can run manually too from the button named "RUN". Note that if something is compressed then it won't re-compress it
Regards
have odoo12?
have odoo12?
Re: have odoo12?
Dear Alen,
It does support Odoo 12. We will release within a day