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

Abandoned → [https://github.com/WookieMonster/Laravel-Image-Resizer](/?search=https%3A%2F%2Fgithub.com%2FWookieMonster%2FLaravel-Image-Resizer)Library[Image &amp; Media](/categories/media)

douyasi/image-resizer
=====================

Image Resizer for Laravel

12.4k1PHP

Pushed 12y ago2 watchersCompare

[ Source](https://github.com/WookieMonster/Laravel-Image-Resizer)[ Packagist](https://packagist.org/packages/douyasi/image-resizer)[ RSS](/packages/douyasi-image-resizer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersionsUsed By (0)

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

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

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 'WookieMonster\\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

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity8

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f0bca08de3586af706a2ada29662ba46249150dce37ee138180020329eac204?d=identicon)[raoyc](/maintainers/raoyc)

---

Top Contributors

[![WookieMonster](https://avatars.githubusercontent.com/u/2540942?v=4)](https://github.com/WookieMonster "WookieMonster (6 commits)")

### Embed Badge

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

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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