PHPackages                             danieladarve/twig-webp-filter - 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. [Templating &amp; Views](/categories/templating)
4. /
5. danieladarve/twig-webp-filter

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

danieladarve/twig-webp-filter
=============================

Adds a twig function that returns an Object containing webp and img data

0.0.1(5y ago)11MITPHP

Since Oct 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/danieladarve/twig-webp-filter)[ Packagist](https://packagist.org/packages/danieladarve/twig-webp-filter)[ RSS](/packages/danieladarve-twig-webp-filter/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

Twig Webp Filter plugin for Craft CMS 3.x
=========================================

[](#twig-webp-filter-plugin-for-craft-cms-3x)

Returns an Object containing webp and img data

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

[](#requirements)

This plugin requires Craft CMS 3.5 or later.

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require danieladarve/twig-webp-filter

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Twig Webp Filter.

Twig Webp Filter Overview
-------------------------

[](#twig-webp-filter-overview)

Accepts an instance of craft\\elements\\Asset `{% set imageObject = webp(image.one()) %}`

Brought to you by [Daniel G Adarve](https://github.com/danieladarve)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

2037d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54af669e7e12b7aff79e59da0a47f5fc6cc5cc5cb7b7c6ee825ed9296bdd462f?d=identicon)[danieladarve](/maintainers/danieladarve)

---

Top Contributors

[![danieladarve](https://avatars.githubusercontent.com/u/22025439?v=4)](https://github.com/danieladarve "danieladarve (1 commits)")

---

Tags

cmsCraftcraftcmscraft-plugintwig webp filter

### Embed Badge

![Health badge](/badges/danieladarve-twig-webp-filter/health.svg)

```
[![Health](https://phpackages.com/badges/danieladarve-twig-webp-filter/health.svg)](https://phpackages.com/packages/danieladarve-twig-webp-filter)
```

###  Alternatives

[lewisjenkins/craft-dynamic-fields

Populate Craft fields with dynamic data using the power of Twig.

14667.0k](/packages/lewisjenkins-craft-dynamic-fields)[nystudio107/craft-minify

A simple plugin that allows you to minify blocks of HTML, CSS, and JS inline in Craft CMS templates.

37461.2k28](/packages/nystudio107-craft-minify)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)[craftpulse/craft-colour-swatches

Let clients choose from a predefined set of colours and utilise associated colour codes and class names in your templates.

3530.8k2](/packages/craftpulse-craft-colour-swatches)[superbig/craft-mjml

Render Twig emails with MJML, the only framework that makes responsive email easy.

2627.3k1](/packages/superbig-craft-mjml)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.3k](/packages/verbb-footnotes)

PHPackages © 2026

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