Skip to Content
Menu

Image Attachment Compression

by
Odoo

50.55

v 18.0 Third Party 74
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 2179
Technical Name azk_image_compression
LicenseAGPL-3
Websitehttp://www.azka.tech
Versions 12.0 13.0 14.0 15.0 16.0 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 2179
Technical Name azk_image_compression
LicenseAGPL-3
Websitehttp://www.azka.tech
Versions 12.0 13.0 14.0 15.0 16.0 17.0 18.0
header

Introduction

Enables compressing images stored as attachments or in DB for any model.


Key Features

  • 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

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.
    r1.3 r1.4
  • 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 r1.5 r1.6
  • Check results: Go back to the model where the image was uploaded and verify the results.
    Download the image and check the size reduction. r1.7 r1.8
  • 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 r1.9 r1.10 r1.11

Configuration

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

Suggested Apps


Our Services

odoo consultancy

Odoo
Consultancy

odoo implementation

Odoo
Implementation

odoo customization

Odoo
Customization

odoo integration

Odoo
Integration

odoo data migration

Odoo
Data Migration

odoo training

Odoo
Training

odoo support

Odoo
Support

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.