PHPackages                             swissup/module-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. swissup/module-webp

ActiveMagento2-module[Image &amp; Media](/categories/media)

swissup/module-webp
===================

Magento2 module for convert images to webp format

1.0.2(2y ago)03.1k↓71.3%11OSL-3.0PHP

Since Sep 26Pushed 2y ago4 watchersCompare

[ Source](https://github.com/swissup/module-webp)[ Packagist](https://packagist.org/packages/swissup/module-webp)[ RSS](/packages/swissup-module-webp/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (4)Used By (1)

Webp
====

[](#webp)

It's a magento2-module for the [metapackage](https://github.com/swissup/webp).

### [Installation](https://docs.swissuplabs.com/m2/extensions/webp/installation/)

[](#installation)

###### For clients

[](#for-clients)

There are several ways to install the extension for clients:

1. If you've bought the product at Magento's Marketplace - use [Marketplace installation instructions](https://docs.magento.com/marketplace/user_guide/buyers/install-extension.html)
2. Otherwise, you have two options:

    - Install the sources directly from [our repository](https://docs.swissuplabs.com/m2/extensions/webp/installation/composer/) - **recommended**
    - Download archive and use [manual installation](https://docs.swissuplabs.com/m2/extensions/webp/installation/manual/)

###### For maintainers

[](#for-maintainers)

```
cd
composer config repositories.swissup composer https://docs.swissuplabs.com/packages/
composer require swissup/module-webp --prefer-source --ignore-platform-reqs
bin/magento module:enable Swissup_Webp Swissup_Core
bin/magento setup:upgrade
bin/magento setup:di:compile
```

### Usage

[](#usage)

#### Check available webp convertors

[](#check-available-webp-convertors)

Before images can be converted, you will need to check if some converter is already availble. Tool [cwebp](https://developers.google.com/speed/webp/docs/cwebp) is the most useful tool for converting

```
bin/magento swissup:webp:check -a
+-----------+-----------------------+
| Converter | Path                  |
+-----------+-----------------------+
| imagick   | imagick PHP extension |
| gd        | gd PHP extension      |
+-----------+-----------------------+
```

*Convert JPEG &amp; PNG to WebP with PHP*

This extension enables you to do webp conversion with PHP. It supports an abundance of methods for converting and automatically selects the most capable of these that is available on the system.

The library can convert using the following methods:

- *cwebp* (executing [cwebp](https://developers.google.com/speed/webp/docs/cwebp) binary using an `exec` call)
- *vips* (using [Vips PHP extension](https://github.com/libvips/php-vips-ext))
- *imagick* (using [Imagick PHP extension](https://github.com/Imagick/imagick))
- *gmagick* (using [Gmagick PHP extension](https://www.php.net/manual/en/book.gmagick.php))
- *imagemagick* (executing [imagemagick](https://imagemagick.org/index.php) binary using an `exec` call)
- *graphicsmagick* (executing [graphicsmagick](http://www.graphicsmagick.org/) binary using an `exec` call)
- *ffmpeg* (executing [ffmpeg](https://ffmpeg.org/) binary using an `exec` call)
- *wpc* (using [WebPConvert Cloud Service](https://github.com/rosell-dk/webp-convert-cloud-service/) - an open source webp converter for PHP - based on this library)
- *ewwww* (using the [ewww](https://ewww.io/plans/) cloud converter (1 USD startup and then free webp conversion))
- *gd* (using the [Gd PHP extension](https://www.php.net/manual/en/book.image.php))

In addition to converting, the library also has a method for *serving* converted images, and we have instructions here on how to set up a solution for automatically serving webp images to browsers that supports webp.

*Magento 2 at least has one reasonable system requirement out of the box and suits our needs. It is Gd PHP extension.*

#### Convert product images to [webp](https://developers.google.com/speed/webp)

[](#convert-product-images-to-webp)

```
bin/magento swissup:webp:convert
```

###### Help by this command

[](#help-by-this-command)

```
bin/magento swissup:webp:convert -h
Description:
  Convert product images to webp

Usage:
  swissup:webp:convert [options]
  webp:convert

Options:
      --skip_hidden_images  Do not process images marked as hidden from product page
  -l, --limit=LIMIT         limit --limit=10 (default: 100 000) [default: 100000]
  -f, --filename=FILENAME   filename filter --filename=1.png
  -h, --help                Display help for the given command. When no command is given display help for the list command
  -q, --quiet               Do not output any message
  -V, --version             Display this application version
      --ansi|--no-ansi      Force (or disable --no-ansi) ANSI output
  -n, --no-interaction      Do not ask any interactive question
  -v|vv|vvv, --verbose      Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
```

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.3% 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 ~88 days

Total

3

Last Release

879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5eb663f2c3faab23d84a3ea1e7cbb2ff3afb0e27c10eefd018e48455c997c07?d=identicon)[0m3r](/maintainers/0m3r)

---

Top Contributors

[![0m3r](https://avatars.githubusercontent.com/u/412612?v=4)](https://github.com/0m3r "0m3r (21 commits)")[![ci-swissuplabs](https://avatars.githubusercontent.com/u/40459861?v=4)](https://github.com/ci-swissuplabs "ci-swissuplabs (2 commits)")

---

Tags

imageoptimizationWebp

### Embed Badge

![Health badge](/badges/swissup-module-webp/health.svg)

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

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1142.0M17](/packages/mollie-magento2)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

3223.7k](/packages/mage-os-module-automatic-translation)

PHPackages © 2026

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