bigfork / silverstripe-webp-formatter
Adds a .Webp() format option for converting images to webp
Installs: 3 298
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- silverstripe/framework: ^4 || ^5
This package is auto-updated.
Last update: 2024-10-20 11:18:32 UTC
README
Adds a .Webp()
function to templates to allow converting images to webp.
This is a module version of this proof of concept by Maxime Rainville.
To use this, your image driver (typically GD or Imagick) must be compiled with support for webp.
Usage
{$Image.Webp.ScaleWidth(150)}
or
{$Image.ScaleWidth(150).Webp}