PHPackages                             gdaws/imageresizer - 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. gdaws/imageresizer

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

gdaws/imageresizer
==================

High-level image resizing library

v0.1.5(11y ago)11141MITPHPPHP &gt;=5.3.3

Since Feb 21Pushed 11y ago1 watchersCompare

[ Source](https://github.com/gdaws/php-imageresizer)[ Packagist](https://packagist.org/packages/gdaws/imageresizer)[ RSS](/packages/gdaws-imageresizer/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Image Resizing Library
======================

[](#image-resizing-library)

High level image resizing library for PHP 5.3+

Usage example:

```
use Gdaws\ImageResizer\ResizerFacade;
use Gdaws\ImageResizer\Exception\ImageResizerException;

$resizer = new ResizerFacade();

try {

    $resizer->resize('in.jpg', 'out.jpg', array(
        "mode" => "crop",
        "width" => 100,
        "height" => 100,
        "quality" => 80
    ));
}
catch(ImageResizerException $exception) {

    echo $exception->getMessage();
}
```

Crop Mode
---------

[](#crop-mode)

Scale and then crop the image.

Max Mode
--------

[](#max-mode)

Scale the image to tightly fit the output dimensions while preserving the aspect ratio.

Stretch Mode
------------

[](#stretch-mode)

Resize the image exactly to the dimensions specified.

Common Settings
---------------

[](#common-settings)

These are common settings that affect the output image:

- `width` of image in pixels. The value must be greater than 0.
- `height` of image in pixels. The value must be greater than 0.
- `quality` sets the compression level. Accepts a value between 0 and 100.

It's possible to only specify one of the dimensions and let the resizer calculate the other dimension using the source image's aspect ratio.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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 ~79 days

Total

5

Last Release

4146d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11c2820f45dc1bd2639b2b3934949eb39c80a4fa74d09d9fc818604ca5fa1b9d?d=identicon)[gdaws](/maintainers/gdaws)

---

Top Contributors

[![gdaws](https://avatars.githubusercontent.com/u/17767?v=4)](https://github.com/gdaws "gdaws (18 commits)")

---

Tags

thumbnailImageMagickgdimageresizer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gdaws-imageresizer/health.svg)

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

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[james-heinrich/phpthumb

The PHP thumbnail generator

318516.1k6](/packages/james-heinrich-phpthumb)[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

860918.1k11](/packages/sybio-image-workshop)[intervention/image-laravel

Laravel Integration of Intervention Image

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

Image manipulation library for Laravel 5 based on Imagine and inspired by Croppa for easy url based manipulation

270248.2k5](/packages/folklore-image)

PHPackages © 2026

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