What this solution does
Wintra.ImageOptimize
The module provides copies of images in WebP format. Links in the page HTML code point to optimized copies stored in a separate /upload/ directory. Original files are not modified; the module only reads them, performing no compression, resizing, or renaming.
Copies are created on demand. If a copy does not exist, the module generates it upon the first request, serves it to the visitor, and saves it. Subsequently, the web server serves the file directly without PHP involvement.
Large images are resized to a specified size along the longest side; changes apply only to the copy, preserving aspect ratios. The threshold is set by the site owner.
A background batch process is available for all site images. The process runs in steps with a few-second interval, includes a progress indicator, and can be stopped at any time. The browser does not need to remain open.
The module removes orphaned copies. When Bitrix clears the cache for resized images, copies for deleted images may remain on the disk; the tool locates and deletes them, and reminds the administrator to clean up after cache clearing.
A failure log is available on the settings page, showing the full file path and recent entries. This allows you to see which images failed to convert and the reason for the error.
Images often constitute the largest portion of a web page's weight. While the WebP format significantly reduces file size at the same quality, standard solutions either irreversibly compress original files or require manual re-uploading. The 'Wintra Image Optimization' module keeps source files intact: disabling the component instantly restores the site to its original state, while removal deletes only the generated copies.
Typical use cases
E-commerce store with product photography. A catalog containing hundreds of thumbnails becomes significantly lighter. On a live tire store, page image weight dropped from 2978 KB to 451 KB.
Catalog receiving images via automated exchange with an accounting system. Exports often save photos in PNG format, which is highly inefficient for photographs. The module corrects this without interfering with the data exchange process.
Website with a large image archive. Batch processing runs in the background without disrupting site operations.
Functional limitations
The module does not modify or delete original files, neither during operation nor upon module removal.
It does not implement lazy loading for images nor alter the page layout: only image paths are corrected.
It does not replace image links; clicking to enlarge always opens the original in full resolution.
It does not process SVG, PDF, or animated GIF files.
The module automatically selects the image conversion tool: it uses cwebp if available, otherwise it falls back to the GD library. No manual configuration of the conversion method is required.
General iT can take care of implementing “Wintra.ImageOptimization”, including installation, configuration and result verification.