Create webp image on resize of jpg and png files

Installs: 4 115

Dependents: 0

Suggesters: 0

Security: 0

Stars: 11

Watchers: 5

Forks: 14

Open Issues: 8


dev-master 2019-04-09 14:09 UTC

This package is auto-updated.

Last update: 2024-06-10 01:06:37 UTC


Build Status License


This module creates webp images from resized jpeg and png images. More Information about webp images


  • Silverstripe > 4.2
  • GDLib with webp Extension


composer require nomidi/silverstripe-webp-image


  • run dev/build?flush=1

  • force Browser to load webp image // Example 1 (default) edit .htaccess in your root directory, and add webp forwarding in compatible browsers

  • force Browser to load webp image // Example 2 for information on usage of webp image in html see

Quick Testfile for checking if webp is available

Below you will find the code to quickly check if webp is available with the installed GD Library. Simply copy this code into a .php file in your root folder and open the file in a browser.


if (function_exists(imagewebp)) {
    echo "WebP is available";
} else {
    echo "WebP is not available";


  • documentation
  • IMagick Support
  • PHP test to check support
  • Delete Webp Image
  • Flush Webp Image