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

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

reviewpush/image-resizer
========================

Image Resizer for Laravel

1.0.0(10y ago)225.1kGPL-3.0+PHPPHP &gt;=5.4.0

Since Sep 22Pushed 10y ago5 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Simple Image Resizer for Laravel
================================

[](#simple-image-resizer-for-laravel)

> Fork from

composer require code

```
"require": {
		"reviewpush/image-resizer" : "^1.0.*"
	}
```

Key features:
-------------

[](#key-features)

- Resize while retaining current proportions based on width or height
- Autocrop images from the center using the shortest side
- Rotate
- Filters (contrast, brightness, smooth, greyscale, guassian)
- Supports jpg, png and gif loading and exporting
- Autogenerated filenames or custom filenames

After installing the package make sure to add 'ReviewPush\\ImageResizer\\ImageResizerServiceProvider' to your providers array in app/config/app.php. The package already contains an alias defined as ImageResizer.

Examples:
---------

[](#examples)

Loading an image using the facade:

```
$resizer = ImageResizer::load('path/to/image.jpg');

```

Auto crop the image to a 2:1 rectangle:

```
$resizer->autocrop(2, 1)->export('/path/to/save/destination');

```

Auto crop the image to 1:1 (square) and resize the width to 200 maintaining aspect ratio:

```
$resizer->autocrop(1, 1)->resizeWidth(200)->export('/path/to/save/destination');

```

Make a crop from x = 50, y = 20, 100 pixels wide and heigh:

```
$resizer->crop(50, 20, 100, 100)->greyscale()->export('/path/to/save/destination');

```

Proportionally scale the image using its width or its height:

```
// using the width and scaling the height proportionally:
$resizer->resizeWidth(100);
// OR using the height and scaling the width proportionally:
$resizer->resizeHeight(100);

```

Rotate the image:

```
$resizer->rotate(90)->export('/path/to/save/destination', 'myfilename', 'png');

```

By default the export creates a random 32 character filename:

```
resizer->export('/path/to/save/destination');

```

To specify the filename include it in the second parameter:

```
resizer->export('/path/to/save/destination', 'myfilename');

```

Specify the exported filetype with the third parameter:

```
resizer->export('/path/to/save/destination', FALSE, 'png'); // saves png format

```

After the image is exported use the getters for useful information about the file:

```
$resizer->getExif(); // exif data about the original file
$resizer->getWidth(); // exported width
$resizer->getHeight(); // exported height
$resizer->getFullSavePath(); // full absolute path "/absolute/path/to/myfilename.jpg"
$resizer->getSavedFilename(); // saved filename e.g. "myfilename"
$resizer->getSavedFilenameWithExtension(); // saved filename including extension e.g. "myfilename.jpg"

```

License:  GNU Public License

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

3891d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7655291f0d9341055a1c57c1e2d1eff7ae306f475e2fe4c6608076fb961acf35?d=identicon)[ReviewPush](/maintainers/ReviewPush)

---

Top Contributors

[![eblount](https://avatars.githubusercontent.com/u/1424719?v=4)](https://github.com/eblount "eblount (4 commits)")[![ycrao](https://avatars.githubusercontent.com/u/3280204?v=4)](https://github.com/ycrao "ycrao (4 commits)")

### Embed Badge

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

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

###  Alternatives

[creativeorange/gravatar

A Laravel Gravatar package for retrieving gravatar image URLs or checking the existance of an image.

5467.5M54](/packages/creativeorange-gravatar)[intervention/image-laravel

Laravel Integration of Intervention Image

1536.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)[spatie/laravel-og-image

Generate OG images for your Laravel app

305.2k](/packages/spatie-laravel-og-image)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)

PHPackages © 2026

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