PHPackages                             dynimage/dynimage - 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. dynimage/dynimage

ActiveLibrary

dynimage/dynimage
=================

...

057PHP

Since Feb 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/pizzavomito/dynimage)[ Packagist](https://packagist.org/packages/dynimage/dynimage)[ RSS](/packages/dynimage-dynimage/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

DynImage
========

[](#dynimage)

[![Build Status](https://camo.githubusercontent.com/46eb6d519f574c604569234cc67b9a4ffe9516bd45a572dcfc38814f3b00a9b7/68747470733a2f2f7472617669732d63692e6f72672f70697a7a61766f6d69746f2f64796e696d6167652e706e67)](https://travis-ci.org/pizzavomito/dynimage)[![SensioLabsInsight](https://camo.githubusercontent.com/4edf8f0110964f266bcc97b3ae9a6726924647cc9f6f8a3c9dbd670d3d4e3e11/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62373965333264612d616232382d343639372d623062362d6633633562313363303763642f6d696e692e706e67)](https://insight.sensiolabs.com/projects/b79e32da-ab28-4697-b0b6-f3c5b13c07cd)

Basic Usage Example
-------------------

[](#basic-usage-example)

```
$dynimage = new DynImage\DynImage();
$dynimage->add((new DynImage\Filter\Resize())->setHeight(200)->setWidth(200));
$dynimage->add((new DynImage\Filter\Border())->setHeight(10)->setWidth(10));
$dynimage->add((new DynImage\Filter\Blur())->setSigma(5));
$dynimage->add((new DynImage\Filter\Colorize())->setColor('ff9900'));
$dynimage->add((new DynImage\Filter\Gamma())->setCorrection(1.5));
$dynimage->add((new DynImage\Filter\Reflect())->setColor('ff9900'));
$dynimage->add((new DynImage\Filter\Crop())->setX(10)->setY(10));

$image = $dynimage->apply(file_get_contents('/path/to/image'));

$image->show('png');

$image->save('/path/to/image.png');
```

Filter Application Order
------------------------

[](#filter-application-order)

Filters listen to events of dynimage to apply at the right time. Filters that are connected to the same event are applied in the order they were added to Dynimage.

Events are :

```
  AFTER_CREATE_IMAGE
  EARLY_APPLY_FILTER
  LATE_APPLY_FILTER
  FINISH_CREATE_IMAGE
```

However, you can change the event of a filter like this.

```
use DynImage\Events;
use DynImage\Filter\Rotate;

$rotate = (new Rotate())->setAngle(45)->setEvent(Events::FINISH_CREATE_IMAGE);

$dynimage = new DynImage\DynImage();
$dynimage->add($rotate);
or
$dynimage = new DynImage\DynImage();
$dynimage->add((new Rotate())->setAngle(45), Events::FINISH_CREATE_IMAGE);
```

\##License

MIT License

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![pizzavomito](https://avatars.githubusercontent.com/u/3321468?v=4)](https://github.com/pizzavomito "pizzavomito (17 commits)")

### Embed Badge

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

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

PHPackages © 2026

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