PHPackages                             rezizer/url - 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. rezizer/url

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

rezizer/url
===========

Rezizer URL generator - Building optmized image URLs

0.2.1(9y ago)015MITPHP

Since Sep 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/zanaca/rezizer-php)[ Packagist](https://packagist.org/packages/rezizer/url)[ Docs](http://www.rezizer.com)[ RSS](/packages/rezizer-url/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

RezizerUrl - a PHP Rezizer Url Generator
========================================

[](#rezizerurl---a-php-rezizer-url-generator)

Install
-------

[](#install)

Add `rezizer/url` as dependency in `composer.json`.

Usage
-----

[](#usage)

```
$secretKey = 'OhMyG0shWhatASecretKey!';

// start the generatorf
$rezizerUrl = new Rezizer\Url('http://your.rezizer.url:port', $secretKey);

// get the Rezized url
$imageUrl = $rezizerUrl->with('http://your.domain.url/foo/bar.jpg')->resize(100, 100)->generate();
```

Supported operations
====================

[](#supported-operations)

alignments
----------

[](#alignments)

- Aligns the image to one of it's edge or to the it's center. If you use `smart()` the system will find the most important part of the image and user it as center. They are themselves operations. Usage: `.north()`, `.east()`, `.south()`, `.west()`, `.northeast()`, `.southeast()`, `.southwest()`, `.northwest()`, `.smart()` or `.center()`.

background
----------

[](#background)

- Sets the background color of the image in color name format, #RRGGBB format or 255,255,255 format , where each channel is an integer from 0 to 255. You can specify `blurry` to set the background as a distorted and blurry version of the image or `auto` to set the color from the most important color of the image. Available options: color name (`red`, `purple`), RGB hex color code (`FF0000`, `800080`), `blurry` or `auto`. Usage: `.background('red')`

blur
----

[](#blur)

- Blurs the image to value from 1 to 1000. Available range: `1` to `1000`. Usage: `.blur(2)`

colorFilter
-----------

[](#colorfilter)

- Passes a color correction filter on the image. Available filters: `vintage`, `lomo`, `clarity`, `sinCity`, `sunrise`, `crossProcess`, `orangePeel`, `love`, `grungy`, `sepia`, `jarques`, `pinhole`, `oldBoot`, `glowingSun`, `hazyDays`, `herMajesty`, `nostalgia`, `hemingway`, `concentrate`, `xpro2`, `lo-fi`, `rise`, `hudson`, `earlybird`, `nashville`. Usage: `.colorFilter('lomo')`

crop
----

[](#crop)

- Crops a region of the image specified by the top-left coordinate and the bottom-right coordinate of the image. You must specify the four points: `.crop(100, 200, 300, 400)` where `100` is the top position, `200` is the right position, the `300` is the bottom position and `400` is the left position. Usage: `.crop(10, 20, 100, 110)`

distort
-------

[](#distort)

- Distorts the image to the match the desired resize dimension. No parameter is expected. Usage: `.distort()`

extend
------

[](#extend)

- Extends the informed amount of pixels to each side of the image. The order to be used is: top, bottom, left, right. Usage: `.extend(10, 20, 30, 40)`

faceDetection
-------------

[](#facedetection)

- Detects faces in the image and use them as center of the image for cropping. If you specify the parameter `focused`, the image will focus and crop the image to the detected faces, or leave it blank to just align the image to the part that have faces. Usage: `.faceDetection('focused')`

fitIn
-----

[](#fitin)

- Maintains the image dimension ratio when resizing, adding black bars to the output image. If you combine it with `background`, you will change the color of the bars. Usage: `.fitIn()`

fit
---

[](#fit)

- Ifs the source image is smaller than the desired resize dimension, it will keep the image's dimension. If it is bigger, the image will be resized. Usage: `.fit()`

flip
----

[](#flip)

- Flips the image vertically. Usage: `.flip()`

flop
----

[](#flop)

- Flops the image horizontally. Usage: `.flop()`

format
------

[](#format)

- Changes the output image format. Available options: `jpeg`, `png`, `webp`Usage: `.format('jpeg')`

grayscale
---------

[](#grayscale)

- Changes the color table of the image to grayscale. Usage: `.grayscale()`

invert
------

[](#invert)

- Inverts the image colors, making it a negative. Usage: `.invert()`

map
---

[](#map)

- Creates a URL to generate mapping tiles for the informed image. All other operations will be removed when using it. Usage: `.map()`

max
---

[](#max)

- Changes the resized dimensions to the max of height and width and fit with the image ratio. Usage: `.max()`

maxAge
------

[](#maxage)

- Changes the max-age header to be used for caching the image on the client side Usage: `.maxAge(3200)`

maxKb
-----

[](#maxkb)

- Sets the max file size of the output image, in kilobytes. Usage: `.maxKb(5)`

min
---

[](#min)

- Changes the resized dimensions to the min of height and width and fit with the image ratio. Usage: `.min()`

overlay
-------

[](#overlay)

- Expects an URL of a image to be used as a watermark on the output image and placed on a corner specified as the second parameter of the function. Usage: `.overlay('http://your.domain.own/image.jpg', 'northwest')`

palette
-------

[](#palette)

- Retrieves *N* most important color from the image palette, the values are between 1 and 10. 5 if nothing is specified. All other operations will be removed when using it. Usage: `.palette()`

progressive
-----------

[](#progressive)

- Sets progressive filter to the JPEG image. Usage: `.progressive()`

quality
-------

[](#quality)

- Sets output quality of the image filter to the JPEG image. Usage: `.quality(70)`

resize
------

[](#resize)

- Sets output dimension of the image with *height* and *width*. Usage: `.resize(100, 100)`

rotate
------

[](#rotate)

- Rotates the image in 90°, 180° or 270°. Usage: `.rotate(90)`

round
-----

[](#round)

- Creates a round corner of the image. The values are percentages between 0 to 100. If no value is specified, it will use 100 as value. Usage: `.round()`

tile
----

[](#tile)

- Creates a URL to generate tiles in the zoomify format for the informed image. The origin image has no size limitations. All other operations will be removed when using it. Usage: `.tile()`

tint
----

[](#tint)

- Colorizes the image with a color name format, #RRGGBB format or 255,255,255,1.0 format , where each channel is an integer from 0 to 255 and the alpha channel sits between 0 and 1. Available options: color name (`red`, `purple`), RGB hex color code (`FF0000`, `800080`). Usage: `.tint(128, 0, 128, .5)` or `.tint('FF0000')`

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

3578d ago

### Community

Maintainers

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

---

Top Contributors

[![zanaca](https://avatars.githubusercontent.com/u/122560?v=4)](https://github.com/zanaca "zanaca (14 commits)")

---

Tags

resizethumborcropoptmizeimageurlrezizer

### Embed Badge

![Health badge](/badges/rezizer-url/health.svg)

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

###  Alternatives

[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)[ctessier/nova-advanced-image-field

An advanced image field for Nova with cropping and resizing.

102563.4k1](/packages/ctessier-nova-advanced-image-field)[jbzoo/image

A PHP class that simplifies working with images

171128.5k3](/packages/jbzoo-image)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

138115.5k7](/packages/stefangabos-zebra-image)[bodom78/kohana-imagefly

Create resized / cropped images directly through url parameters.

5517.9k](/packages/bodom78-kohana-imagefly)[sadovojav/yii2-image-thumbnail

Yii2 image thumbnail component

2243.5k](/packages/sadovojav-yii2-image-thumbnail)

PHPackages © 2026

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