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)0633OSL-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 1w ago

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 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

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

1290d 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

135931.0k3](/packages/goat1000-svggraph)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

138121.6k7](/packages/stefangabos-zebra-image)[treinetic/imageartist

ImageArtist is a php gd Wrapper which makes Image manipulation insanely easy, we introduce ImageArtist as Photoshop for php

8783.2k](/packages/treinetic-imageartist)[johncarter/filament-focal-point-picker

An image focal point picker for Filament Admin.

4431.7k1](/packages/johncarter-filament-focal-point-picker)[yk/laravel-ocr

A wrapper for gocr.

1356.6k](/packages/yk-laravel-ocr)

PHPackages © 2026

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