bigfork / silverstripe-webp-formatter
Adds a .Webp() format option for converting images to webp
Installs: 3 514
Dependents: 1
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-11-06 14:21:03 UTC
README
This functionality is now available without a module: https://docs.silverstripe.org/en/5/changelogs/5.3.0/#file-converter
Silverstripe Webp Formatter
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}