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)84184.1k↑11.8%35[8 issues](https://github.com/staempfli/magento2-module-image-resizer/issues)[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 today

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

Maintenance18

Infrequent updates — may be unmaintained

Popularity46

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

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

[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)
