PHPackages                             yireo/magento2-next-gen-images - 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. yireo/magento2-next-gen-images

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

yireo/magento2-next-gen-images
==============================

Magento 2 module to add NextGen images support to the Magento frontend

0.5.15(6mo ago)471.1M—9.5%33[2 PRs](https://github.com/yireo/Yireo_NextGenImages/pulls)2OSL-3.0PHPPHP &gt;=7.4.0CI failing

Since Nov 30Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/yireo/Yireo_NextGenImages)[ Packagist](https://packagist.org/packages/yireo/magento2-next-gen-images)[ Docs](https://www.yireo.com/software/magento-extensions/next-gen-images)[ GitHub Sponsors](https://github.com/sponsors/jissereitsma)[ GitHub Sponsors](https://github.com/sponsors/yireo)[ RSS](/packages/yireo-magento2-next-gen-images/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (68)Used By (2)

Magento 2 module for NextGenImages
==================================

[](#magento-2-module-for-nextgenimages)

This module adds next-gen image support to Magento 2. Please note that this is a base extension for other extensions to use. See [Yireo\_Webp2](https://github.com/yireo/Yireo_Webp2) for details.

**WARNING: If you are using Hyva and want to use the latest version of this module, remove `Hyva_YireoNextGenImages`.**

Development
-----------

[](#development)

This module features some settings and info panels in the Magento Store Configuration. But the major feature is a plugin on the `Layout` that scans for HTML `` tags to convert them into `` tags with sources for alternative image formats.

A module `Foo_Bar` could add a `etc/di.xml` file to add a new convertor (a class implementing `\Yireo\NextGenImages\Convertor\ConvertorInterface`) to the convertor listing:

```

                Foo\Bar\Convertor

```

FAQ
===

[](#faq)

### Can I skip lazy loading of images?

[](#can-i-skip-lazy-loading-of-images)

Yes, just add `fetchpriority="high"` to the image HTML of your choice.

### Can I call upon the convertor directly?

[](#can-i-call-upon-the-convertor-directly)

Yes, you can. You can inject the class `Yireo\NextGenImages\Image\ImageCollector` as a block argument via the XML layout (or alternatively use the LokiComponents `$viewModelFactory` or the Hyva `$viewModels` to instantiate it) and then call upon it as follows:

```
$images = $this->imageCollector->collect($imageUrl);
```

Roadmap
=======

[](#roadmap)

- Move CLI into separate module
- Move frontend into separate module
- Create GraphQL support
- Add more next gen image formats
    - JPEG 2000
    - HEIC
    - AVIF
    - JPEG XL
    - WebP2

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance75

Regular maintenance activity

Popularity54

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.9% 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 ~30 days

Recently: every ~63 days

Total

59

Last Release

208d ago

PHP version history (3 changes)0.0.1PHP &gt;=7.1.0

0.3.17PHP &gt;=7.3.0

0.4.1PHP &gt;=7.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (351 commits)")[![wilfriedwolf](https://avatars.githubusercontent.com/u/23700116?v=4)](https://github.com/wilfriedwolf "wilfriedwolf (3 commits)")[![rommelfreddy](https://avatars.githubusercontent.com/u/15031079?v=4)](https://github.com/rommelfreddy "rommelfreddy (2 commits)")[![jesperingels](https://avatars.githubusercontent.com/u/39624711?v=4)](https://github.com/jesperingels "jesperingels (2 commits)")[![pointia](https://avatars.githubusercontent.com/u/1998210?v=4)](https://github.com/pointia "pointia (2 commits)")[![Bashev](https://avatars.githubusercontent.com/u/1854269?v=4)](https://github.com/Bashev "Bashev (2 commits)")[![hostep](https://avatars.githubusercontent.com/u/85479?v=4)](https://github.com/hostep "hostep (2 commits)")[![samicoman](https://avatars.githubusercontent.com/u/8766784?v=4)](https://github.com/samicoman "samicoman (1 commits)")[![ShaunInBed](https://avatars.githubusercontent.com/u/78921887?v=4)](https://github.com/ShaunInBed "ShaunInBed (1 commits)")[![theuargb](https://avatars.githubusercontent.com/u/83121880?v=4)](https://github.com/theuargb "theuargb (1 commits)")[![peteracsz](https://avatars.githubusercontent.com/u/89061261?v=4)](https://github.com/peteracsz "peteracsz (1 commits)")[![jellesiderius](https://avatars.githubusercontent.com/u/8039493?v=4)](https://github.com/jellesiderius "jellesiderius (1 commits)")[![khoimm92](https://avatars.githubusercontent.com/u/6015437?v=4)](https://github.com/khoimm92 "khoimm92 (1 commits)")[![lphilippo](https://avatars.githubusercontent.com/u/732984?v=4)](https://github.com/lphilippo "lphilippo (1 commits)")[![Amadeco](https://avatars.githubusercontent.com/u/2975845?v=4)](https://github.com/Amadeco "Amadeco (1 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")[![RetroProgrammist](https://avatars.githubusercontent.com/u/49781693?v=4)](https://github.com/RetroProgrammist "RetroProgrammist (1 commits)")

---

Tags

magentomagento 2Yireo

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yireo-magento2-next-gen-images/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-next-gen-images/health.svg)](https://phpackages.com/packages/yireo-magento2-next-gen-images)
```

###  Alternatives

[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[yireo/magento2-googletagmanager2

Add Google Tag Manager to Magento

167930.4k5](/packages/yireo-magento2-googletagmanager2)[lizardmedia/module-varnish-warmer

Varnish Cache Warmer Magento2 module by Lizard Media

6276.8k](/packages/lizardmedia-module-varnish-warmer)

PHPackages © 2026

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