PHPackages                             blackbird-agency/magento2-module-image-resizer - 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. blackbird-agency/magento2-module-image-resizer

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

blackbird-agency/magento2-module-image-resizer
==============================================

Magento 2 Module to add simple image resizing capabilities in all blocks and .phtml templates

2.1.2(3y ago)0627OSL-3.0PHPPHP ^7.0|^8.0

Since Oct 13Pushed 3y agoCompare

[ Source](https://github.com/blackbird-agency/magento2-module-image-resizer)[ Packagist](https://packagist.org/packages/blackbird-agency/magento2-module-image-resizer)[ RSS](/packages/blackbird-agency-magento2-module-image-resizer/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (15)Used By (0)

Magento 2 Image Resizer
=======================

[](#magento-2-image-resizer)

Magento 2 Module to add simple image resizing capabilities in all blocks and .phtml templates

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

[](#installation)

```
$ composer config "repositories.magento2-module-image-resizer" "vcs" "git@github.com:IndieGroup/magento2-module-image-resizer.git"
$ composer require "staempfli/magento2-module-image-resizer":"~2.0"

```

Usage
-----

[](#usage)

`imageResizer` is automatically available in all frontend Blocks. You can resize your images just calling a method:

```
/** @var \Staempfli\ImageResizer\Model\Resizer $imageResizer */
$imageResizer = $block->getImageResizer();
$resizedImageUrl = $imageResizer->resizeAndGetUrl(, $width, $height, [$resizeSettings]);
```

You can do that directly on the .phtml or in your custom Block.

Cache
-----

[](#cache)

Resized images are saved in cache to improve performance. That way, if an image was already resized, we just use the one in cache.

If you need to, you can clear the resized images cache on the Admin Cache Management

[![Admin Clear Resized Images Cache](docs/img/admin-clear-cache.png "Clear Resized Images Cache")](docs/img/admin-clear-cache.png)

Prerequisites
-------------

[](#prerequisites)

- PHP &gt;= 7.0.\*
- Magento &gt;= 2.1.\*

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 52.4% 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 ~209 days

Recently: every ~401 days

Total

12

Last Release

1245d ago

Major Versions

1.1 → 2.02017-10-27

PHP version history (4 changes)1.0PHP ~7.0.0

2.0.1PHP ^7.0.0

2.0.4PHP ^7.0

v2.1.1PHP ^7.0|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12445118?v=4)[anthony-blackbird](/maintainers/anthony-blackbird)[@anthony-blackbird](https://github.com/anthony-blackbird)

---

Top Contributors

[![jalogut](https://avatars.githubusercontent.com/u/6410900?v=4)](https://github.com/jalogut "jalogut (22 commits)")[![audef1](https://avatars.githubusercontent.com/u/4160004?v=4)](https://github.com/audef1 "audef1 (7 commits)")[![Integrated-Engineering-Jenkins](https://avatars.githubusercontent.com/u/36773381?v=4)](https://github.com/Integrated-Engineering-Jenkins "Integrated-Engineering-Jenkins (2 commits)")[![rtesson-bird](https://avatars.githubusercontent.com/u/104067856?v=4)](https://github.com/rtesson-bird "rtesson-bird (2 commits)")[![staempfli-webteam](https://avatars.githubusercontent.com/u/19466159?v=4)](https://github.com/staempfli-webteam "staempfli-webteam (2 commits)")[![DavidLambauer](https://avatars.githubusercontent.com/u/1841317?v=4)](https://github.com/DavidLambauer "DavidLambauer (2 commits)")[![zekkai707](https://avatars.githubusercontent.com/u/163116163?v=4)](https://github.com/zekkai707 "zekkai707 (1 commits)")[![clivewalkden](https://avatars.githubusercontent.com/u/1225802?v=4)](https://github.com/clivewalkden "clivewalkden (1 commits)")[![MidnightDesign](https://avatars.githubusercontent.com/u/743172?v=4)](https://github.com/MidnightDesign "MidnightDesign (1 commits)")[![nocturnalfrog](https://avatars.githubusercontent.com/u/1250532?v=4)](https://github.com/nocturnalfrog "nocturnalfrog (1 commits)")[![schmengler](https://avatars.githubusercontent.com/u/367320?v=4)](https://github.com/schmengler "schmengler (1 commits)")

### Embed Badge

![Health badge](/badges/blackbird-agency-magento2-module-image-resizer/health.svg)

```
[![Health](https://phpackages.com/badges/blackbird-agency-magento2-module-image-resizer/health.svg)](https://phpackages.com/packages/blackbird-agency-magento2-module-image-resizer)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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