PHPackages                             egsn/image-optimizer - 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. egsn/image-optimizer

ActiveMagento2-module

egsn/image-optimizer
====================

WebP/AVIF upload, auto-convert and auto-resize images for Magento 2

1.0.0(1mo ago)01OSL-3.0PHPPHP ~8.2.0||~8.3.0||~8.4.0

Since Jul 13Pushed 1mo agoCompare

[ Source](https://github.com/Esmerioneto/ImageOptimizer)[ Packagist](https://packagist.org/packages/egsn/image-optimizer)[ RSS](/packages/egsn-image-optimizer/feed)WikiDiscussions main Synced 1w ago

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

Egsn\_ImageOptimizer
====================

[](#egsn_imageoptimizer)

**Pacote:** `egsn/module-image-optimizer`

Módulo Magento 2 para otimização de imagens: permite upload de WebP/AVIF, converte JPG/PNG automaticamente no upload, redimensiona imagens acima de um limite configurável e preenche automaticamente os atributos `width`/`height` em imagens do Page Builder.

Recursos
--------

[](#recursos)

- **Upload WebP/AVIF** — habilita upload direto nas galerias de produto, categoria e Media Gallery
- **Conversão automática** — converte JPG/PNG para WebP ou AVIF no momento do upload (usa Imagick se disponível, GD como fallback)
- **Redimensionamento automático** — redimensiona imagens que excedam o limite configurado (modos: Fit ou Crop centralizado)
- **Page Builder auto-dimensions** — injeta `width` e `height` reais em tags `` geradas pelo Page Builder

Requisitos
----------

[](#requisitos)

- PHP `~8.2.0 || ~8.3.0 || ~8.4.0`
- Magento Framework `103.0.*`
- Extensão GD (obrigatória) ou Imagick (recomendada, necessária para AVIF)

Instalação
----------

[](#instalação)

```
composer require egsn/image-optimizer:^1.0
bin/magento module:enable Egsn_ImageOptimizer
bin/magento setup:upgrade
bin/magento cache:flush
```

Configuração
------------

[](#configuração)

Acesse **Stores → Configuration → Egsn → Image Optimizer**.

GrupoOpçãoPadrãoGeneralEnable ModuleSimImage ConversionEnable Auto-ConvertNãoImage ConversionOutput FormatWebPImage ConversionQuality85Image ResizeEnable Auto-ResizeNãoImage ResizeMax Width1920pxImage ResizeMax Height1080pxImage ResizeResize ModeFitPage BuilderAuto-fill Width &amp; HeightSimTestes
------

[](#testes)

```
vendor/bin/phpunit -c app/code/Egsn/ImageOptimizer/Test/Unit/phpunit.xml
```

Changelog
---------

[](#changelog)

### \[Unreleased\]

[](#unreleased)

### \[1.0.0\] - 2026-06-15 - EGSN-0000

[](#100---2026-06-15---egsn-0000)

#### Added

[](#added)

- Upload de WebP e AVIF nas galerias de produto, categoria e Media Gallery
- Conversão automática de JPG/PNG para WebP/AVIF no upload via plugin no `Uploader`
- Adaptadores GD (suporte WebP) e Imagick (suporte WebP e AVIF)
- Redimensionamento automático com modos Fit e Crop centralizado
- Preenchimento automático de `width`/`height` em imagens do Page Builder
- Configuração via painel admin em Stores → Configuration → Egsn → Image Optimizer

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance90

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35ec81cc8b850f90f5a0057829e6d4c86d67aa839509f4747d8f3f98f040b44b?d=identicon)[Esmerioneto](/maintainers/Esmerioneto)

---

Top Contributors

[![Esmerioneto](https://avatars.githubusercontent.com/u/8236850?v=4)](https://github.com/Esmerioneto "Esmerioneto (3 commits)")

### Embed Badge

![Health badge](/badges/egsn-image-optimizer/health.svg)

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

###  Alternatives

[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68365.7k](/packages/run-as-root-magento2-prometheus-exporter)[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.5M2](/packages/fastly-magento2)[buckaroo/magento2

Buckaroo Magento 2 extension

32431.3k8](/packages/buckaroo-magento2)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1862.4k](/packages/myparcelnl-magento)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

3432.7k](/packages/mage-os-module-automatic-translation)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1019.5k30](/packages/loki-magento2-components)

PHPackages © 2026

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