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

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

staempfli/magento2-module-image-resizer
=======================================

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

2.0.4(6y ago)84183.9k↓50%35[4 PRs](https://github.com/staempfli/magento2-module-image-resizer/pulls)OSL-3.0PHPPHP ^7.0

Since Oct 13Pushed 5y ago8 watchersCompare

[ Source](https://github.com/staempfli/magento2-module-image-resizer)[ Packagist](https://packagist.org/packages/staempfli/magento2-module-image-resizer)[ RSS](/packages/staempfli-magento2-module-image-resizer/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (12)Used By (0)

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

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

[![Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development.](https://camo.githubusercontent.com/14a8e7234bd98508cfd9903b34d873f772f8bad5efc410eddd157e9561fa51e6/687474703a2f2f7777772e7265706f7374617475732e6f72672f6261646765732f6c61746573742f6162616e646f6e65642e737667)](http://www.repostatus.org/#abandoned)

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

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

[](#installation)

```
$ 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

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 56.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 ~139 days

Recently: every ~184 days

Total

9

Last Release

2378d ago

Major Versions

1.1 → 2.02017-10-27

PHP version history (3 changes)1.0PHP ~7.0.0

2.0.1PHP ^7.0.0

2.0.4PHP ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/402069?v=4)[Marcel Hauri](/maintainers/mhauri)[@mhauri](https://github.com/mhauri)

![](https://www.gravatar.com/avatar/71706506f6589b5436c45edfcf1ae57d8ced0d5571c06fdd48cf97d41b0bbcb8?d=identicon)[staempfli-webteam](/maintainers/staempfli-webteam)

![](https://www.gravatar.com/avatar/0039026286692f2f4f9df99a2625870ca1b157114920093ce0ff89fb5756e064?d=identicon)[audef1](/maintainers/audef1)

---

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 (9 commits)")[![DavidLambauer](https://avatars.githubusercontent.com/u/1841317?v=4)](https://github.com/DavidLambauer "DavidLambauer (2 commits)")[![staempfli-webteam](https://avatars.githubusercontent.com/u/19466159?v=4)](https://github.com/staempfli-webteam "staempfli-webteam (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)")[![schmengler](https://avatars.githubusercontent.com/u/367320?v=4)](https://github.com/schmengler "schmengler (1 commits)")

---

Tags

image-resizermagento2magento2-extension

### Embed Badge

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

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[marc1706/fast-image-size

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

959.4M20](/packages/marc1706-fast-image-size)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)

PHPackages © 2026

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