danieladarve / twig-webp-filter
Adds a twig function that returns an Object containing webp and img data
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- aelvan/imager: dev-dev-fix-deprecations as 2.4.0
- craftcms/cms: ^3.0.0
This package is auto-updated.
Last update: 2025-03-10 19:21:31 UTC
README
Returns an Object containing webp and img data
Requirements
This plugin requires Craft CMS 3.5 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require danieladarve/twig-webp-filter
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Twig Webp Filter.
Twig Webp Filter Overview
Accepts an instance of craft\elements\Asset
{% set imageObject = webp(image.one()) %}
Brought to you by Daniel G Adarve