Simple detection of browser webp capabilities

Installs: 75

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0


v1.0.1 2021-07-28 10:52 UTC

This package is auto-updated.

Last update: 2021-09-28 11:19:15 UTC


Provides basic WebP support detection based on browser headers

By default, the extension is applied to SiteTree, meaning that any page class which extends this should be able to use detection in a template:

<img alt="Someimage" src="
 <% if $WebPSupport %>
 <% else %>
 <% end_if %>

(Example shows the generation of a WebP image using the Image formatter module here: