Payments are experiencing issues due to temporary restrictions in Russia. If your payment does not go through, please submit a support request.Our support team is available 24/7 — we are always here to help with hosting and server issues.We are now accepting requests for dedicated server rental and colocation services in our data center.Reminder: we recommend enabling backups for additional data protection.A new VPS/VDS lineup with NVMe storage and improved performance is now available.Maintenance work on some servers has been completed. All services are operating normally.

MODULE FOR 1C-BITRIX

Dev2Fun

Image optimization and conversion to WebP/AVIF - automatically and without third-party services

This module automatically optimizes images and converts them to WebP or AVIF formats for browsers that support these standards. Processing is performed locally without relying on external services. This approach helps improve site performance and aligns with SEO best practices.

5.00/5 · 63 ratings

1C-Bitrix Marketplace: 5/5 · 63 ratings

Technical details

Published
12 May 2017
Updated
1 September 2026
Version
0.11.15
Installed
More than 1000 times
Responsive design
Yes
Composite support
Yes
Compatible with Sites24
Yes
Developer
Dev2Fun

What this solution does

This module automatically optimizes images and converts them to WebP or AVIF formats for browsers that support these standards. Processing is performed locally without relying on external services. This approach helps improve site performance and aligns with SEO best practices.

:)

The module optimizes images and PDF files, converting them to WebP and AVIF formats without relying on external services. Supported types for optimization include JPEG, PNG, PDF, GIF, and SVG. Conversion to WebP/AVIF is available for JPEG and PNG images.

The solution utilizes Google-recommended tools: jpegoptim, optipng, gs, svgo, gifsicle, cwebp, and Imagick. This ensures image compression by a factor of 5–10, significant disk space savings, and successful PageSpeed Insights test results. Optimization and conversion occur automatically in real time, including processing during image resizing.

The module does not use external services or the curl library, minimizing server load. Features include support for multisite installations and Bitrix24. Flexible configuration options are available, including the ability to run optimization via console in the background.

Users can enable or disable automatic image resizing with a defined maximum size limit. The original orientation of files is preserved (vertical images remain vertical, horizontal remain horizontal), and file permissions are maintained. The optimization process is clean, avoiding the creation of unnecessary data.

The Dev2Fun image optimization module provides compression and conversion to WebP and AVIF formats without using external services. The original creation timestamp of files is preserved during processing.

Three conversion modes are available:

hitConvert — conversion is performed upon the first image request. Can work together with the postConvert mode. Creates load when the image is accessed for the first time.

postConvert — conversion occurs at the end of page generation. Converts all images that meet the conditions. Can work together with the hitConvert mode. Creates load when the page is accessed for the first time.

lazyConvert (recommended) — deferred conversion. Converts all found images on visited pages in the background. Works independently of all other modes. Does not create load when accessing the page.

Optimization is supported for:

- loading preview and detail images of elements;

- loading images into the FILE Image property of elements;

- loading images into element sections;

- loading images into the main module;

- image resizing (including cached versions).

Additional features:

- enable or disable optimization for elements, sections, and resizing;

- set file quality during compression;

- set compression level for files;

- enable or disable progressive JPEG;

- compress all existing images directly from the admin panel;

- settings for conversion to WebP and AVIF;

- image conversion agent.

The module automatically optimizes images and converts them to WebP and AVIF formats without relying on external services. It includes an agent for clearing expired cache. Users can select which browsers receive converted image versions and toggle browser support checks via HTTP headers.

Console scripts are provided for optimization, conversion (bitrix/modules/dev2fun.imagecompress/console/convert.php), and clearing the cache of converted pages (bitrix/modules/dev2fun.imagecompress/console/cache-delayed-delete.php). The module can be disabled during data exchange and synchronization processes.

To clear the database of conversion results, execute SQL queries against the b_d2f_imagecompress_images_to_converted and b_d2f_imagecompress_images_converted tables via the SQL administration page. Delete WebP files from the upload/resize_cache/webp directory. Full cache or HTML-only cache clearing is performed via the administration panel or command line (deleting the bitrix/html_pages folder).

Original images are preserved during optimization, allowing for their restoration if needed.

In the free version of the module, the optimization process replaces the original image with a compressed version. The original file cannot be restored after this replacement. It is recommended to create a backup of the upload folder before starting optimization.

When converting images to WebP or AVIF formats, the original files are preserved and can be restored. To do this, disable the conversion feature in the module settings and clear the cache.

Report any technical issues, bugs, or suggestions for improvement to the developers.

For “Image optimization and conversion to WebP/AVIF - automatically and without third-party services”, General iT can perform integration, configuration and a final check after installation.

UPDATE HISTORY

What’s new

76 releases
0.11.15 (15.06.2026)Latest update

* Security improvements

0.11.14 (12.04.2026)

* Security improvements when working with exec()

* Migration from webpack.js to vite.js

0.11.13 (06.04.2026)

* Fixed an error if GD was compiled without EXIF support

* Removed checks for readable and executable from PHP. Now only the version is checked

* Improved checking for the availability of the exec function and necessary server utilities

* Added the ability to clear the cache for searching images for conversion

* Added the ability to clear the cache for replacing original images with webp/avif versions

* Improved deletion of converted images when the original is deleted

* Significantly improved security when working with exec

0.11.11 (23.02.2026)

* Fixed a bug that occasionally occurred with incorrect paths

0.11.10 (30.07.2025)

* Fixed a bug where the image of an information block element was not saved when optimizing JPEG images

* Reintroduced the possibility of the error "Mysql query error: (2006) MySQL server has gone away (400)". Occurs when the MySQL connection times out

* Fixed the bug "Dev2fun\ImageCompress\Compress::resize(): Argument #2 ($strFilePath) must be of type string, null given, called in"

* Frontend update

USER EXPERIENCE

Solution reviews

How does this solution work in a real project? Share your experience and help others choose.

Be the first to share your experience

There are no reviews of this solution on git.ru yet. Tell us what worked well and what could be improved.

Verified purchaseAdd a key if you wish. A verified review gets a badge, priority placement and more rating weight.

Open to every clientJust sign in to your account. A key is optional; all reviews are moderated.

YOUR EXPERIENCE MATTERS

Your review

YOUR PROJECT INFRASTRUCTURE

A home for your website

BEFORE YOU ORDER

Let’s go through the details.

Is installation free?
The solution itself is free. Installation, configuration and customisation services are agreed separately. A compatible platform and an appropriate platform licence are required.
How do I check compatibility?
Compare the supported editions and solution version in the technical details with your project. Before installing on a live website, we recommend making a backup and checking the solution in a test environment.
Can you help with implementation?
We can help install the module, check its settings and verify how it works in your project. Compatibility with other customisations and the scope of work are assessed before we begin.

GENERAL iT

Let’s discuss your project

Получатель: ООО «Дженерал Ай Ти Рус»

1C-BITRIX

Install solution

Enter a domain with or without https://. The installer will open in your website control panel in a new tab.

Solution screenshots

Solution screenshot