postyou/contao-webp-bundle

Replace images with WebP format if the browser supports it

Installs: 2 790

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 6

Forks: 3

Open Issues: 2

Type:contao-bundle

v1.0.6 2020-01-22 11:49 UTC

This package is auto-updated.

Last update: 2024-04-26 00:10:07 UTC


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.