PHPackages                             eehondas/silverstripe-webp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. eehondas/silverstripe-webp

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

eehondas/silverstripe-webp
==========================

v4.1(4y ago)085MITPHP

Since May 4Pushed 4y agoCompare

[ Source](https://github.com/eehondas/silverstripe-webp)[ Packagist](https://packagist.org/packages/eehondas/silverstripe-webp)[ RSS](/packages/eehondas-silverstripe-webp/feed)WikiDiscussions 4.x Synced today

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

silverstripe-webp
=================

[](#silverstripe-webp)

The Plugin integrates simple WebP image conversion into Silverstripe.

Requirements
------------

[](#requirements)

- SilverStripe 4.x
- rosell-dk/webp-convert ^2.6
- php &gt;= 7.4

Install
-------

[](#install)

Install via composer.

`composer require jbennecker/silverstripe-webp`

Register the plugin as a data extension for the `Image` asset:

```
SilverStripe\Assets\Image:
    extensions:
        - jbennecker\Webp\WebpExtension
```

Usage
-----

[](#usage)

Convert images on the go in a Template, e.g. `Example.ss`.

### Create a responsive `` element

[](#create-a-responsive-picture-element)

You can create picture elements with responsive Webp and fallback sources:

`$Image.WebpPicture(string $params, int ...$widths)`

e.g.

`$Image.WebpPicture('class="example" width="100" height="50"', 370, 550, 1200).RAW`

Don't forget to append `.RAW` in order to get unescaped html.

This will create the following html output (for .jpg input):

```

```

The fallback `` will have the average width of your defined `...$widths`.

*Note:* The `alt` parameter is set automatically as no variables can be added to the `$params` string.

### Get `srcset` string or a single WebP-Link

[](#get-srcset-string-or-a-single-webp-link)

You can get `srcset` sources with widths by using the `$Image.WebpSet(120, 550, 700)` method and insert the string in a `srcset` parameter of an `` tag.

Additionally, you can call `$Image.Webp` to get a single url to the converted Webp file.

You will find additional help in the `WebpExtension.php` file.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1522d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42627602?v=4)[Simone Bosco](/maintainers/eehondas)[@eehondas](https://github.com/eehondas)

---

Top Contributors

[![passchn](https://avatars.githubusercontent.com/u/77938819?v=4)](https://github.com/passchn "passchn (5 commits)")

---

Tags

silverstripeWebp

### Embed Badge

![Health badge](/badges/eehondas-silverstripe-webp/health.svg)

```
[![Health](https://phpackages.com/badges/eehondas-silverstripe-webp/health.svg)](https://phpackages.com/packages/eehondas-silverstripe-webp)
```

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[symbiote/silverstripe-gridfieldextensions

A collection of useful grid field components

951.9M272](/packages/symbiote-silverstripe-gridfieldextensions)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/tagfield

Tag field for SilverStripe

561.3M50](/packages/silverstripe-tagfield)[jonom/silverstripe-betternavigator

Front-end utility menu for Silverstripe websites featuring administration and development tools

60435.1k13](/packages/jonom-silverstripe-betternavigator)[lekoala/silverstripe-cms-actions

Add actions to your models in SilverStripe

39344.8k31](/packages/lekoala-silverstripe-cms-actions)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
