What this solution does
The Image Compression module organizes images already hosted on the website server: it locates them, displays their location and size, and compresses selected folders without visible quality loss.
What the module does
Scans the website folders and builds a tree structure: each folder shows the number of images and the space they occupy.
Allows selecting specific folders — only marked sections and their subfolders are processed.
Compresses images to WebP or JPEG formats, resizing them by the longest side if necessary.
Displays results for each file: original size, final size, and percentage of space saved.
Skips files where the gain is below a set threshold, avoiding unnecessary re-encoding.
Offers to download the processed files as a single archive.
How it works
In the admin panel, open the Content → Image Compression section.
Wait for the folder tree to build and select the desired folders.
Set the desired quality, maximum side length, and target format.
Click the Compress Selected button and monitor the progress.
Download the result archive or choose the file replacement mode on the server.
Processing occurs in batches, allowing efficient handling of large catalogs without exceeding PHP execution time limits.
Save modes
The 'Image Squeeze' module by 'Magic Colors' offers two processing modes. The 'Copies' mode preserves original files unchanged, places compressed versions in a service directory, and provides them for download as an archive. The 'Replace' mode overwrites the original file with the compressed version; this action is irreversible and requires explicit user confirmation.
Supported formats include JPG, JPEG, JFIF, PNG, WebP, GIF (static frames only), and BMP. When using the 'Replace' mode, JFIF files are automatically resaved as JPG with the correct extension. AVIF and TIFF formats are processed only if supported by the server's GD or Imagick libraries.
The module requires the 1C-Bitrix: Site Management or Bitrix24 platform within the administrative section. The server must have the GD extension with WebP support or the Imagick extension installed and configured. The zip extension is required to download results as an archive. PDF processing requires the installation of Ghostscript and qpdf.
When needed, General iT can implement “Image compression”, configure the module and verify it against the current website setup.