Image size unification (saving disk space and inodes)

What is resize unification?
Jet Cache automatically normalizes all requests to generate images in different sizes from the original (resizes) to a limited set of standard size presets.
Instead of dozens of similar sizes (for example, 198x198, 200x200, 228x228) that are almost identical, Jet Cache uses the closest available preset.

Why do so many different image sizes appear?
In OpenCart, the theme (template) has its own image size settings (for example, category images use a 200x200 thumbnail). But many third-party modules ignore these settings and generate their own resizes. For instance, instead of the configured 200x200 thumbnail, a module can generate its own 228x228 variant. As a result, dozens of redundant size sets appear, which duplicate the same purpose and simply fill up the disk.

Which presets are available?

Any custom sizes that you add yourself
- Small
- Medium
- Large
- Popup
- Banner
...

Do I have to fill in all fields?

The sizes you fill in define the available presets. If only 4 fields are filled, for example, unification will work only with these 4.
You can add as many resize sizes as you want. But the fewer resize presets you have, the better: fewer files, fewer inodes and less disk usage.

What is this for?
- reduces the number of generated resize files
- saves disk space and inodes
- lowers the load on the file system
- speeds up backups

How much can you save? ...
On average, each product has 10-30 resizes.
(the numbers below are approximate)
For 100,000 products this is 1-3 million files (inodes).
- Without unification: ~2,000,000 images
- With unification (6 presets): ~400,000 - 500,000
- Saving: up to 75% of files

With an average file size of 50 KB, for 100,000 products the saving is:
~75 GB of disk space.
And this does not even include the set of compressed WEBP resizes.
There is also a setting - output WEBP only, which further reduces the number of files, inodes and required disk space.

Where can I find the settings?
In the Jet Cache module, Images tab, Resizes and unification sub-tab.

  jetcache-resizes.jpg

jetcache