PHPackages                             yuzuru-s/resize-image - 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. yuzuru-s/resize-image

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

yuzuru-s/resize-image
=====================

The PHP library can easily resize images.

1.0.0(9y ago)2385MITPHPPHP &gt;=5.5.0

Since Dec 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/YuzuruS/resize-image)[ Packagist](https://packagist.org/packages/yuzuru-s/resize-image)[ Docs](https://github.com/YuzuruS/resize-image)[ RSS](/packages/yuzuru-s-resize-image/feed)WikiDiscussions master Synced 4w ago

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

The PHP library can easily resize images.
=========================================

[](#the-php-library-can-easily-resize-images)

[![Coverage Status](https://camo.githubusercontent.com/4cd47e66b1475d629faf445995c6343d7f5dac97742f7c1ed1dbce477bbafd35/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f59757a757275532f726573697a652d696d6167652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/YuzuruS/resize-image?branch=master)[![Build Status](https://camo.githubusercontent.com/8efc2a4cdd4ffa92eec676220fe94a3b62f88a7cc411487c602049c62f1b4d8c/68747470733a2f2f7472617669732d63692e6f72672f59757a757275532f726573697a652d696d6167652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/YuzuruS/resize-image)[![Stable Version](https://camo.githubusercontent.com/ac96cabbdcf96728f004ae07c41b96719938db50d2d036d26710f4074b809874/68747470733a2f2f706f7365722e707567782e6f72672f79757a7572752d732f726573697a652d696d6167652f762f737461626c65)](https://packagist.org/packages/yuzuru-s/resize-image)[![Download Count](https://camo.githubusercontent.com/b0e3b9faa285c8598769738e8e7118e63256ff9b6fa3665d280ca2ac95ccd3a8/68747470733a2f2f706f7365722e707567782e6f72672f79757a7572752d732f726573697a652d696d6167652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yuzuru-s/resize-image)[![License](https://camo.githubusercontent.com/f49b8b09aaa262f91d797cc69cb6af2c66dd76c82d74e140f8d58bf6260b5dc9/68747470733a2f2f706f7365722e707567782e6f72672f79757a7572752d732f726573697a652d696d6167652f6c6963656e7365)](https://packagist.org/packages/yuzuru-s/resize-image)

The PHP library can easily resize images and allows you to adjust the height and width of the image and clip it.

Examples
--------

[](#examples)

[![example-org](https://cloud.githubusercontent.com/assets/1485195/20863745/c67e3700-ba18-11e6-958c-520e763aae43.jpg)](https://cloud.githubusercontent.com/assets/1485195/20863745/c67e3700-ba18-11e6-958c-520e763aae43.jpg)

[![example-20percent-test](https://cloud.githubusercontent.com/assets/1485195/20863749/d3341a6e-ba18-11e6-960d-d78cce54a082.jpg)](https://cloud.githubusercontent.com/assets/1485195/20863749/d3341a6e-ba18-11e6-960d-d78cce54a082.jpg)

Requirements
------------

[](#requirements)

- PHP
    - > =5.5 &gt;=5.6, &gt;=7.0
- Composer

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

[](#installation)

- Using composer

```
{
    "require": {
       "yuzuru-s/resize-image": "1.0.*"
    }
}

```

```
$ php composer.phar update yuzuru-s/resize-image --dev

```

How to use
----------

[](#how-to-use)

Please check [sample code](https://github.com/YuzuruS/resize-image/blob/master/sample/usecase.php)

How to run unit test
--------------------

[](#how-to-run-unit-test)

Run with default setting.

```
% vendor/bin/phpunit -c phpunit.xml.dist

```

Currently tested with PHP 7.0.0

History
-------

[](#history)

License
-------

[](#license)

Copyright (c) 2016 YUZURU SUZUKI. See MIT-LICENSE for further details.

Copyright
---------

[](#copyright)

- Yuzuru Suzuki
    -

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3495d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73e354a09ba135db0f4849a7281fd1ae3602544202f5e589f7f3410d3a7b3664?d=identicon)[s1130125](/maintainers/s1130125)

---

Top Contributors

[![YuzuruS](https://avatars.githubusercontent.com/u/1485195?v=4)](https://github.com/YuzuruS "YuzuruS (10 commits)")

---

Tags

imageresize

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/yuzuru-s-resize-image/health.svg)

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

###  Alternatives

[intervention/image

PHP Image Processing

14.3k203.8M2.5k](/packages/intervention-image)[gumlet/php-image-resize

PHP class to re-size and scale images

1.2k5.8M61](/packages/gumlet-php-image-resize)[masterexploder/phpthumb

A library for manipulating images in PHP.

967763.4k17](/packages/masterexploder-phpthumb)[sybio/image-workshop

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

854936.5k12](/packages/sybio-image-workshop)[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M160](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506511.0k27](/packages/bkwld-croppa)

PHPackages © 2026

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