postyou / contao-webp-bundle
Replace images with WebP format if the browser supports it
Installs: 2 967
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 6
Forks: 3
Open Issues: 2
Type:contao-bundle
Requires
- php: ^5.6 || ^7.0
- contao/core-bundle: ~4.4
- rosell-dk/webp-convert: ^2.0
Conflicts
- contao/core: *
- contao/manager-plugin: <2.0 || >=3.0
README
Contao 4 WebP Bundle
Contao 4 Bundle to automatically replace jpg and png images with the webp format, if the browser supports it. You can disable the conversion of png images in the contao settings, e.g. when there are problems with the alpha channel.
Requirements
For webp conversion your webserver must support one of the following libraries/methods:
cwebp
gd
imagick
gmagick
If none of the libraries is available the image is returned in default format.
Usage
In the conto system settings a "Use WebP Format" checkbox is added. If the checkbox is selected, all images of image and text content elements will be converted.