Free
Download the package from the manager of your site.
How to download?
How to download?
AVIF & WEBP Converter
A package for automatically converting images to WebP and AVIF to improve performance and optimize website loading on MODX.
Based on github.com/commeta/modxWebpConverter, but completely redesigned and significantly expanded.
The github.com/rosell-dk/webp-convert library has been updated from 1.1.0 to 1.6.0
Support has been added for github.com/kornelski/cavif-rs
Device support check:
If the user supports WebP or AVIF, the following classes are automatically added to the html tag:
Compatibility
Added substitution of new data-* attributes for compatibility with popular lazy-load and slider libraries.
Format Selection
Ability to switch between WebP and AVIF in the settings.
Settings
Turn the plugin on/off (off by default)
Disable image substitution for authorized users
Select webp/avif format
Select conversion quality from 1 to 100 for webp/avif
Debug mode
Requirements
Tested on Beget hosting.
Modx 2.8.7 + PHP 7.4
Modx 3.1.2 + PHP 8.2
Your hosting must support the necessary libraries for conversion.
A package for automatically converting images to WebP and AVIF to improve performance and optimize website loading on MODX.
Based on github.com/commeta/modxWebpConverter, but completely redesigned and significantly expanded.
The github.com/rosell-dk/webp-convert library has been updated from 1.1.0 to 1.6.0
Support has been added for github.com/kornelski/cavif-rs
Device support check:
If the user supports WebP or AVIF, the following classes are automatically added to the html tag:
awc_support_webp or awc_support_avifThis allows you to use CSS selectors:html.awc_support_avif :has(img) { ... }
html:not(.awc_support_webp) img { ... }Also, if the format is not supported by the device, no substitution will occur.Compatibility
Added substitution of new data-* attributes for compatibility with popular lazy-load and slider libraries.
Format Selection
Ability to switch between WebP and AVIF in the settings.
Settings
Turn the plugin on/off (off by default)
Disable image substitution for authorized users
Select webp/avif format
Select conversion quality from 1 to 100 for webp/avif
Debug mode
Requirements
Tested on Beget hosting.
Modx 2.8.7 + PHP 7.4
Modx 3.1.2 + PHP 8.2
Your hosting must support the necessary libraries for conversion.


