PHPackages                             nickdekruijk/imageresize - 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. [Caching](/categories/caching)
4. /
5. nickdekruijk/imageresize

ActiveLibrary[Caching](/categories/caching)

nickdekruijk/imageresize
========================

A simple, yet efficient solution for image resizing and caching with Laravel

1.3.3(3mo ago)1595↓50%MITPHPPHP &gt;=7.0.0

Since Jul 11Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/nickdekruijk/imageresize)[ Packagist](https://packagist.org/packages/nickdekruijk/imageresize)[ Docs](http://www.nickdekruijk.nl/packages/imageresize)[ RSS](/packages/nickdekruijk-imageresize/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (12)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/48c3164698aa1dfc9ba6746ab66102973bb55036746506d0087e7db5e8b2acb3/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b64656b7275696a6b2f696d616765726573697a652f762f737461626c65)](https://packagist.org/packages/nickdekruijk/imageresize)[![Latest Unstable Version](https://camo.githubusercontent.com/0845c767d7821a06283ca20fdd347a2fde4d2997bd28e945ff43d56d0a7efb14/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b64656b7275696a6b2f696d616765726573697a652f762f756e737461626c65)](https://packagist.org/packages/nickdekruijk/imageresize)[![Monthly Downloads](https://camo.githubusercontent.com/0d8706b3dbdaf3c89ba1437a8fd92c59e19ff3955330a9acef07c0424cda3d41/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b64656b7275696a6b2f696d616765726573697a652f642f6d6f6e74686c79)](https://packagist.org/packages/nickdekruijk/imageresize)[![Total Downloads](https://camo.githubusercontent.com/f76dae7f9fd850bc379abec9a269a23456e9ed12c2aad780df5b946ff5e362d4/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b64656b7275696a6b2f696d616765726573697a652f646f776e6c6f616473)](https://packagist.org/packages/nickdekruijk/imageresize)[![License](https://camo.githubusercontent.com/74b355add28bb957f72d7a7a38d58745d7994114c60d51a9647c0d8472890abc/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b64656b7275696a6b2f696d616765726573697a652f6c6963656e7365)](https://packagist.org/packages/nickdekruijk/imageresize)

ImageResize for Laravel
=======================

[](#imageresize-for-laravel)

A simple, yet efficient solution for image resizing and caching with Laravel. Based on my previous imageresize package, now renamed to [nickdekruijk/imageresize-legacy](https://github.com/nickdekruijk/imageresize-legacy).

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

[](#installation)

To install the package use

`composer require nickdekruijk/imageresize`

Configuration
-------------

[](#configuration)

After installing for the first time publish the config file with

`php artisan vendor:publish --tag=config --provider="NickDeKruijk\ImageResize\ServiceProvider"`

A default config file called `imageresize.php` will be available in your Laravel `/config` folder. See this file for more details.

How does it work
----------------

[](#how-does-it-work)

Let's assume you have an image in `/public/media/images/test.jpg` and a template called `thumbnail`. And have set the imageresize.route config to `media/resized`.

Referring to `http://domain.com/media/resized/thumbnail/images/test.jpg` will trigger the imageresize route in laravel since the file doesn't exist. Imageresize then creates the resized image and saves it as `/public/media/resized/thumbnail/images/test.jpg`.

So the next time you refer to `http://domain.com/media/resized/thumbnail/images/test.jpg` the file does exist and the image is served without triggering any php/laravel code for optimal performance.

Drawbacks
---------

[](#drawbacks)

There is however one disadvantage: if the original image is edited or removed the resized file will still remain the same since referring to it doesn't trigger the imageresize package. You will have to manually delete it or use the `php artisan imageresize:delete` command to delete all resized images from the `media/resized` folder.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance80

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~276 days

Recently: every ~435 days

Total

11

Last Release

104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b01fc7c2c39bbe8f87b4afa70ffe1cf2bb787310e1d22fcfed6ae527d4573bb?d=identicon)[nickdekruijk](/maintainers/nickdekruijk)

---

Top Contributors

[![nickdekruijk](https://avatars.githubusercontent.com/u/607302?v=4)](https://github.com/nickdekruijk "nickdekruijk (27 commits)")

---

Tags

phplaravelimageresizecache

### Embed Badge

![Health badge](/badges/nickdekruijk-imageresize/health.svg)

```
[![Health](https://phpackages.com/badges/nickdekruijk-imageresize/health.svg)](https://phpackages.com/packages/nickdekruijk-imageresize)
```

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[swayok/alternative-laravel-cache

Replacements for Laravel's redis and file cache stores that properly implement tagging idea. Powered by cache pool implementations provided by http://www.php-cache.com/

202541.1k6](/packages/swayok-alternative-laravel-cache)[antennaio/laravel-clyde

Image uploads and manipulation for Laravel, a wrapper around Glide

292.6k](/packages/antennaio-laravel-clyde)

PHPackages © 2026

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