PHPackages                             rapidez/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. rapidez/image-resizer

ActiveLibrary[Image &amp; Media](/categories/media)

rapidez/image-resizer
=====================

Rapidez Image Resizer

5.0.3(2mo ago)018.2k↓31%41GPL-3.0-or-laterPHPPHP ^8.0CI passing

Since Jun 30Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/rapidez/image-resizer)[ Packagist](https://packagist.org/packages/rapidez/image-resizer)[ Docs](https://rapidez.io)[ RSS](/packages/rapidez-image-resizer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (59)Used By (1)

Rapidez Image Resizer
=====================

[](#rapidez-image-resizer)

Instead of just loading the full and big images from Magento this extension resizes the images. This works by passing the Magento image path through the image route: `/storage/{store id}/resizes/{size}/magento/{file}`.

Let's say a product image is located at: `https://magentowebsite.com/media/catalog/product/a/a/product-image.jpg` the path will be `/catalog/product/a/a/product-image.jpg`. To get this image with a maximum width of 200 pixels you go to: `/storage/1/resizes/200/magento/catalog/product/a/a/product-image.jpg`. If you also want to specify a maximum height: `/storage/1/resizes/200x200/magento/catalog/product/a/a/product-image.jpg`.

Automatic webp conversion will also be done if the url has `.webp` as it's extension e.g. `/storage/1/resizes/200x200/magento/catalog/product/a/a/product-image.jpg.webp`This will make it retrieve the image from `https://magentowebsite.com/media/catalog/product/a/a/product-image.jpg`, resize it, format it as webp and save it as `/storage/1/resizes/200x200/magento/catalog/product/a/a/product-image.jpg.webp`.

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

[](#installation)

This package is installed by default in Rapidez. But if removed you can re-install it with:

```
composer require rapidez/image-resizer
```

And make sure you ran `php artisan storage:link`

Image from SKU
--------------

[](#image-from-sku)

You can retrieve a product image by using the product's SKU. This is enabled by default, but can be toggled with the `sku.enabled` value in the config file.

To retrieve a product image using SKU, request a path like this: `/storage/1/resizes/200x200/sku/13706`. You can also request a webp like this: `/storage/1/resizes/200x200/sku/13706.webp`.

Config
------

[](#config)

Keep in mind that you have to whitelist all sizes to avoid ddos attacks! Publish the config and specify the sizes you want:

```
php artisan vendor:publish --provider="Rapidez\ImageResizer\ImageResizerServiceProvider" --tag=config
```

### External sources

[](#external-sources)

If you are using images from other external location (see the [CMS integrations](https://docs.rapidez.io/0.x/packages.html#cms)) you can add that source:

```
'external' => [
     'strapi' => env('STRAPI_URL'),
],

```

Now you can use the following path to resize the images from the external source:

```

```

Or alternatively using Laravels route function

```

```

How it works
------------

[](#how-it-works)

Images are downloaded from the media url and stored in `/storage/app/public//resizes`. Because of the symlink created with `php artisan storage:link` the files are then publicly available. Because the route is the same as the path, the webserver first tries to serve the file if it exists, otherwise it will go through PHP to resize and create it.

Deleting resizes
----------------

[](#deleting-resizes)

The image resizes can be deleted using this artisan command:

```
php artisan rapidez:resizes:delete {store?}
```

License
-------

[](#license)

GNU General Public License v3. Please see [License File](LICENSE) for more information.

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance87

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 54% 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 ~33 days

Recently: every ~0 days

Total

52

Last Release

62d ago

Major Versions

2.0.1 → 3.0.02024-12-13

3.1.1 → 4.0.02025-05-20

4.0.0 → 5.0.02025-11-25

3.1.2 → 4.0.12026-03-13

4.0.1 → 5.0.32026-03-17

PHP version history (5 changes)0.1.0PHP ^7.4|^8.0

0.5.0PHP ^8.0|^8.1

0.15.0PHP ^8.0|^8.1|^8.2

3.1.0PHP ^8.0|^8.1|^8.2|^8.3|^8.4

4.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72222911?v=4)[Rapidez](/maintainers/rapidez)[@rapidez](https://github.com/rapidez)

---

Top Contributors

[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (61 commits)")[![indykoning](https://avatars.githubusercontent.com/u/15870933?v=4)](https://github.com/indykoning "indykoning (25 commits)")[![BobWez98](https://avatars.githubusercontent.com/u/23509926?v=4)](https://github.com/BobWez98 "BobWez98 (9 commits)")[![Jade-GG](https://avatars.githubusercontent.com/u/32514269?v=4)](https://github.com/Jade-GG "Jade-GG (7 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (5 commits)")[![claudio-ferraro](https://avatars.githubusercontent.com/u/54107647?v=4)](https://github.com/claudio-ferraro "claudio-ferraro (3 commits)")[![quintenbuis](https://avatars.githubusercontent.com/u/36452184?v=4)](https://github.com/quintenbuis "quintenbuis (2 commits)")[![VincentBean](https://avatars.githubusercontent.com/u/3906942?v=4)](https://github.com/VincentBean "VincentBean (1 commits)")

---

Tags

hacktoberfestrapidez

### Embed Badge

![Health badge](/badges/rapidez-image-resizer/health.svg)

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

###  Alternatives

[finller/laravel-media

A flexible media library for Laravel

472.1k](/packages/finller-laravel-media)[webplusm/gallery-json-media

a filament media storing in a Json field

196.0k](/packages/webplusm-gallery-json-media)[elegantly/laravel-media

A flexible media library for Laravel

474.9k2](/packages/elegantly-laravel-media)

PHPackages © 2026

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