PHPackages                             mrfd/kirby-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. [Image &amp; Media](/categories/media)
4. /
5. mrfd/kirby-webp

ActiveKirby-plugin[Image &amp; Media](/categories/media)

mrfd/kirby-webp
===============

Kirby 3 plugin for converting images to WebP on the fly, with support for file methods and Kirby tags!

1.0.6(3y ago)61.1k↓50%1[1 issues](https://github.com/MRFD/kirby-webp/issues)MITPHPPHP ^7.3|^7.4|^8.0

Since Mar 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MRFD/kirby-webp)[ Packagist](https://packagist.org/packages/mrfd/kirby-webp)[ Fund](https://buymeacoff.ee/mrfd)[ Fund](https://paypal.me/mrfdnl/5)[ RSS](/packages/mrfd-kirby-webp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (7)Used By (0)

🖼 Kirby 3 WebP
==============

[](#-kirby-3-webp)

Important

This plugin is no longer actively maintained, as WebP can now be generated [natively](https://getkirby.com/docs/reference/system/options/thumbs#format) in Kirby 4.

This plugin for [Kirby 3](https://getkirby.com) provides automatic WebP conversion when uploading images (JPG and PNG) via the Panel. With provisions for the use of field methods, KirbyTags and multi-language sites.

**Note:** When using the field methods and KirbyTags the WebP image will be automatically generated when missing. In addition the WebP image will also be removed when the original image is removed via the Panel.

Commerical Usage
----------------

[](#commerical-usage)

This plugin is free but if you use it in a commercial project please consider to

- [Make a donation](https://paypal.me/mrfdnl/5) or
- [Buy me a coffee](https://buymeacoff.ee/mrfd)

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

[](#requirements)

- PHP 7.3+
- Kirby 3

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

[](#installation)

### Download

[](#download)

[Download](https://github.com/MRFD/kirby-webp/archive/master.zip) and copy the files to `/site/plugins/kirby-webp`.

### Git submodule

[](#git-submodule)

```
$ git submodule add https://github.com/MRFD/kirby-webp.git site/plugins/kirby-webp
```

### Composer

[](#composer)

```
composer require MRFD/kirby-webp
```

Usage
-----

[](#usage)

### Field methods

[](#field-methods)

#### $field-&gt;picture()

[](#field-picture)

Converts the field to a picture tag with WebP and fallback for unsupported browsers.

```
