PHPackages                             maximumadvertising/laravel-image-resize - 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. maximumadvertising/laravel-image-resize

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

maximumadvertising/laravel-image-resize
=======================================

Dynamically resize an image and returns the URL using Intervention and Storage

1.1.1(5y ago)62.1k8[2 issues](https://github.com/MaximumAdvertising/laravel-image-resize/issues)MITPHPPHP ^7.1CI failing

Since Oct 31Pushed 5y ago2 watchersCompare

[ Source](https://github.com/MaximumAdvertising/laravel-image-resize)[ Packagist](https://packagist.org/packages/maximumadvertising/laravel-image-resize)[ Docs](https://github.com/MaximumAdvertising/laravel-image-resize)[ RSS](/packages/maximumadvertising-laravel-image-resize/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (7)Versions (9)Used By (0)

Image Resize Helper for Laravel
===============================

[](#image-resize-helper-for-laravel)

Dynamically resize an image and returns the URL using Intervention and Storage

[![Latest Stable Version](https://camo.githubusercontent.com/274262befb5aee5389c2f1ebb6f717b95d1dcc2e92b86ef037e18be80e26d960/68747470733a2f2f706f7365722e707567782e6f72672f6d6178696d756d6164766572746973696e672f6c61726176656c2d696d6167652d726573697a652f762f737461626c65)](https://packagist.org/packages/maximumadvertising/laravel-image-resize)[![Latest Unstable Version](https://camo.githubusercontent.com/79bebb493809fc31b99dc544f2f389e85a7f799d690e22a80147cb48c1c98fbc/68747470733a2f2f706f7365722e707567782e6f72672f6d6178696d756d6164766572746973696e672f6c61726176656c2d696d6167652d726573697a652f762f756e737461626c65)](https://packagist.org/packages/maximumadvertising/laravel-image-resize)

Require
-------

[](#require)

- Laravel 5 or 6
- Intervention Image ^2.4

Supported Filesystem Drivers
----------------------------

[](#supported-filesystem-drivers)

- Local
- S3
- Oss (Aliyun Cloud Storage)

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

[](#installation)

This package can be installed through Composer.

```
composer require maximumadvertising/laravel-image-resize
```

For Laravel 5.4 and lower, you'll have to register the service provider and alias manually.

Add to service providers

```
Mxmm\ImageResize\ImageResizeServiceProvider::class,
```

And alias

```
'ImageResize' => Mxmm\ImageResize\Facade::class,
```

Publish config and assets (Optional)

```
php artisan vendor:publish --provider="Mxmm\ImageResize\ImageResizeServiceProvider"
```

Usage
-----

[](#usage)

Accepted parameters:

```
/**
 * @param string|null $path
 * @param int|null $width
 * @param int|null $height
 * @param string $action
 * @return string
 */
public static function url(string $path = null, int $width = null, int $height = null, string $action = 'fit'): string
```

In HTML:

```

```

Fit (resize &amp; crop) an image to 200x200px

```

```

Resize an image to 200x200px

```

```

Fit (resize &amp; crop) an image to 200px width, with auto height

```

```

sample output

```

```

Tests
-----

[](#tests)

Run tests with:

```
vendor/bin/phpunit
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~109 days

Recently: every ~189 days

Total

8

Last Release

1985d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aedf04c78a869fd498eeee8b7a2bc82bb52606ced032fcd1daf89ef6993cca14?d=identicon)[Maximum Advertising](/maintainers/Maximum%20Advertising)

---

Top Contributors

[![jonasva](https://avatars.githubusercontent.com/u/8156732?v=4)](https://github.com/jonasva "jonasva (9 commits)")[![markpadilla](https://avatars.githubusercontent.com/u/3069990?v=4)](https://github.com/markpadilla "markpadilla (1 commits)")

---

Tags

laravelimageresize

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maximumadvertising-laravel-image-resize/health.svg)

```
[![Health](https://phpackages.com/badges/maximumadvertising-laravel-image-resize/health.svg)](https://phpackages.com/packages/maximumadvertising-laravel-image-resize)
```

###  Alternatives

[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[ctessier/nova-advanced-image-field

An advanced image field for Nova with cropping and resizing.

103548.4k1](/packages/ctessier-nova-advanced-image-field)

PHPackages © 2026

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