Automaticly optimise and generates WebP images of all uploaded & resampled images in SilverStripe

Installs: 142

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 1


1.0.0 2020-05-18 20:47 UTC

This package is auto-updated.

Last update: 2021-01-18 22:20:43 UTC


This Module is Ralph Slooten's axllent/silverstripe-image-optimiser with a module to generate WebP images of all optimized images.

This module automatically optimise, compress and generates an WebP images from both uploaded as well as any resampled (cropped, scaled etc) images in SilverStripe.

Images (JPG, PNG & GIF) are automatically optimised, provided you have the correct binaries installed (see "Installation" below) and it also generates WebP images for all optimized and compressed (JPG & PNG) images. It also adds More Information about webp images

The module overrides the default FlysystemAssetStore to first optimise the image before adding the image to the store, then if the image is a JPG or PNG it will create a WebP image. It works transparently.


Optimisation tools

The module uses spatie/image-optimizer and will use the following optimisers if they are both present and in your default path on your system:

WebP creation tools

The module uses rosell-dk/webp-convert to generate WebP images. The library can convert using the following methods:


composer require showpro/silverstripe-seo-images

Installing the utilities on Ubuntu:

sudo apt-get install jpegoptim optipng pngquant gifsicle

Installing the utilities on Alpine Linux:

apk add jpegoptim optipng pngquant gifsicle


Assuming you have the necessary binaries installed, it should "just work" with the default settings once you have flushed your SilverStripe installation.