Type
magento2-module
Magento 2 module to add WebP support to the Magento frontend
magento2-module
OSL-3.0
None
None
None
None
None
This module adds WebP support to Magento 2. Currently, it ships with the following features:
<img>
tags are found on the page, the corresponding JPG or PNG is converted into WebP and a corresponding <picture
tag is used to replace the original <img>
tag.Use composer to install this extension. First make sure that Magento is installed via composer, and that there is a valid composer.json
file present.
Next, install our module using the following command:
composer require yireo/magento2-webp2
Next, install the new module into Magento itself:
./bin/magento module:enable Yireo_WebP2
./bin/magento setup:upgrade
Enable the module by toggling the setting in Stores > Configuration > Advanced > System > Yireo WebP > Enabled.
Done.