Image Attachment Compression

by
Odoo

9.97

v 14.0 Third Party
Lines of code 264
Technical Name azk_image_compression
LicenseAGPL-3
Websitehttp://www.azka.tech
Also available in version v 13.0 v 12.0
You bought this module and need support? Click here!
Lines of code 264
Technical Name azk_image_compression
LicenseAGPL-3
Websitehttp://www.azka.tech
Also available in version v 13.0 v 12.0

Features

  • Compress images based on a set of rules
  • Flexible rules for compression:
  1. By model where images are uploaded
  2. By mimetype; a regular expression that allows to filter what type of images to compress
  3. By size; it allows to compress images having a bigger size than the configured size
  4. Compress attachments newer or older than specific dates

Configuration

  • Configuration: Setup a compression rule
    1. Select the models where image attachments to be compressed.
    2. Set the source format and destination format (NOTE: The source format should be a regular expression of mimetypes e.g. images/.*bmp.*).
    3. Set the optional minimum size of attachment.
    4. Set the optional newer than/older than days to compress.
    5. 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)
    6. 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"
    7. If you want the scheduled action to run this compression rule daily, keep it active.
Compression Rule
  • Scheduled Action
    1. Upon installing the module, a daily scheduled action "Run attachments compression rules" is added automatically
Scheduled Action

How it works

  • 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

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
There are no ratings yet!
have odoo12?
by
Alen Gao
on 7/1/21, 12:47 AM

have odoo12?

Re: have odoo12?
by
Shadi Moadad
on 7/1/21, 12:07 PM Author

Dear Alen,

It does support Odoo 12. We will release within a day