PHPackages                             levmorozov/php-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. levmorozov/php-resizer

Abandoned → [levmv/php-resizer](/?search=levmv%2Fphp-resizer)Library[Image &amp; Media](/categories/media)

levmorozov/php-resizer
======================

Microservice to resize images

v1.2.5(3y ago)03971MITPHPPHP &gt;=8.1

Since Dec 24Pushed 3y ago2 watchersCompare

[ Source](https://github.com/levmv/php-resizer)[ Packagist](https://packagist.org/packages/levmorozov/php-resizer)[ Docs](https://github.com/levmv/php-resizer)[ RSS](/packages/levmorozov-php-resizer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (3)Versions (21)Used By (0)

php-resizer
===========

[](#php-resizer)

Microservice to resize images on the fly

Generating the URL
------------------

[](#generating-the-url)

The URL should contain the path and options, like this: `/{options}/{encoded path}`

Example:

domain.com/photo/w100,h200,c/encodedimagepath.jpg

Full list of options:
---------------------

[](#full-list-of-options)

```
R: resize
C: crop
Q: quality
G: gravity
B: background
W: watermark
F: filter
P: pixel density ratio

```

### `R` : resize

[](#r--resize)

`R({fit mode}){size}`

Fit mode: contain. Default. Resizes the image to fit within the width and height boundaries without cropping, distorting or altering the aspect ratio.

f - fill. Resizes the image to fit within the width and height boundaries without cropping or distorting the image, and the remaining space is filled with the background color.

c - crop. Resizes the image to fill the width and height boundaries and crops any excess image data.

### `C` : crop

[](#c--crop)

`C{x}x{y}x{width}x{height}`Creates an image whose sizes are exactly the ones specified. The resized image is obtained picking it from a rectangle of the same sizes from the center of the image.

### `G` : Gravity

[](#g--gravity)

When resize (in crop mode) is applied, changing the gravity will define which part of the image is kept inside the crop area. The basic options are:

- `ce` — center (default mode);
- `sm` — smart. `libvips` detects the most "interesting" section of the image and considers it as the center of the resulting image.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity78

Established project with proven stability

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

Recently: every ~30 days

Total

19

Last Release

1163d ago

Major Versions

v0.2.7 → v1.0.02020-10-21

PHP version history (3 changes)v0.0.1PHP &gt;=7.1

v0.1.0PHP &gt;=7.4

v1.2.5PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae48ecbb2539ddf9a3b584a3cdb5bae25c76fd0cc8e8334abc6b4619b3224ed9?d=identicon)[levmv](/maintainers/levmv)

---

Top Contributors

[![levmv](https://avatars.githubusercontent.com/u/979251?v=4)](https://github.com/levmv "levmv (66 commits)")

### Embed Badge

![Health badge](/badges/levmorozov-php-resizer/health.svg)

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[rokka/imagine-vips

libvips adapter for imagine

43564.1k5](/packages/rokka-imagine-vips)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[imagekit/imagekit

PHP library for Imagekit

47795.6k9](/packages/imagekit-imagekit)[intervention/image-driver-vips

libvips driver for Intervention Image

4495.5k6](/packages/intervention-image-driver-vips)[osiemsiedem/intervention-image-vips-driver

VIPS driver for Intervention Image.

2762.3k1](/packages/osiemsiedem-intervention-image-vips-driver)

PHPackages © 2026

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