bigfork/silverstripe-webp-formatter

Adds a .Webp() format option for converting images to webp

Installs: 2 021

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.0.2 2024-03-20 09:56 UTC

This package is auto-updated.

Last update: 2024-04-20 10:16:09 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}