bigfork / silverstripe-webp-formatter
This package is abandoned and no longer maintained.
No replacement package was suggested.
Adds a .Webp() format option for converting images to webp
Package info
github.com/bigfork/silverstripe-webp-formatter
Type:silverstripe-vendormodule
pkg:composer/bigfork/silverstripe-webp-formatter
1.0.2
2024-03-20 09:56 UTC
Requires
- silverstripe/framework: ^4 || ^5
This package is auto-updated.
Last update: 2024-12-06 14:34:04 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}