PHPackages                             brocode/module-image-optimizer-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. brocode/module-image-optimizer-webp

ActiveMagento2-module

brocode/module-image-optimizer-webp
===================================

Magento 2 module to optimize images to AVIF format

1.0.1(4mo ago)0544MITPHP

Since Jun 29Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/brosenberger/module-image-optimizer-webp)[ Packagist](https://packagist.org/packages/brocode/module-image-optimizer-webp)[ Fund](https://www.buymeacoffee.com/brosenberger)[ RSS](/packages/brocode-module-image-optimizer-webp/feed)WikiDiscussions main Synced 1mo ago

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

Image Optimizer WEBP Converter - a Magento 2 converter module for WEBP images
=============================================================================

[](#image-optimizer-webp-converter---a-magento-2-converter-module-for-webp-images)

This module provides a WEBP image converter for Magento 2. It is based on the [brocode/module-image-optimizer](https://github.com/brosenberger/module-image-optimizer)

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/brosenberger)

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

[](#installation)

```
composer require brocode/module-image-optimizer-webp
bin/magento module:enable BroCode_ImageWebpOptimizer
bin/magento setup:upgrade

```

Configuration
-------------

[](#configuration)

The configuration can be found under `Stores -> Configuration -> Services -> BroCode ImageOptimizer -> Image Webp`. Currently the image quality can be set (value between 0 and 100) and the converter can be disabled.

### Apache Configuration

[](#apache-configuration)

Add following snippet to the .htaccess file, which serves public images that are converted:

```
 ############################################
 ## if client accepts webp, rewrite image urls to use webp version
AddType image/webp .webp
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_FILENAME} (.*)\.(png|gif|jpe?g)$
RewriteCond %{REQUEST_FILENAME}\.webp -f
RewriteRule ^ %{REQUEST_FILENAME}\.webp [L,T=image/webp]

```

Further Information
-------------------

[](#further-information)

See base module for more informations on how to setup the image optimizer: [brocode/module-image-optimizer](https://github.com/brosenberger/module-image-optimizer)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance76

Regular maintenance activity

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~557 days

Total

2

Last Release

131d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9453d161c28a18e817351e00d7ebe81ada31842a249ffb3389830b3483584e60?d=identicon)[brosenberger](/maintainers/brosenberger)

---

Top Contributors

[![rosenberger-e-conomix](https://avatars.githubusercontent.com/u/47806105?v=4)](https://github.com/rosenberger-e-conomix "rosenberger-e-conomix (7 commits)")[![brosenberger](https://avatars.githubusercontent.com/u/2969243?v=4)](https://github.com/brosenberger "brosenberger (1 commits)")

### Embed Badge

![Health badge](/badges/brocode-module-image-optimizer-webp/health.svg)

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

PHPackages © 2026

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