PHPackages                             newclass/imago - 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. newclass/imago

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

newclass/imago
==============

The PHP image converter.

v0.7.0(5y ago)0398MITPHPPHP &gt;=5.5.0CI failing

Since Feb 17Pushed 5y agoCompare

[ Source](https://github.com/newclass-pl/imago)[ Packagist](https://packagist.org/packages/newclass/imago)[ RSS](/packages/newclass-imago/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (12)Used By (0)

README
======

[](#readme)

[![license](https://camo.githubusercontent.com/4a018965bd8c82cecfad8d9c844dcefc678a887eab90cb8965f025467d3da080/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626166732f7669612e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/4a018965bd8c82cecfad8d9c844dcefc678a887eab90cb8965f025467d3da080/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626166732f7669612e7376673f7374796c653d666c61742d737175617265)[![PHP 5.5+](https://camo.githubusercontent.com/aa78f147c236f46697a4bd15778f6b31f453b360ebaa19b21c549b3b40721911/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e352b2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/aa78f147c236f46697a4bd15778f6b31f453b360ebaa19b21c549b3b40721911/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e352b2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)

What is Imago?
--------------

[](#what-is-imago)

Imago is a PHP library to convert image and generate sprite. Support filters:

- resize
- auto crop
- resize canvas

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

[](#installation)

The best way to install is to use the composer by command:

composer require newclass/imago

composer install

Use converter example
---------------------

[](#use-converter-example)

```
use Imago\Converter;
use Imago\Filter\ResizeFilter;

$converter=new Converter('image.png');
$filter=new ResizeFilter();
$filter->setWidth(200);
$filter->setHeight(300);
$converter->addFilter($filter);
$converter->save('output.jpg');

```

Use sprite generator example
----------------------------

[](#use-sprite-generator-example)

```
use Imago\Filter\CropFilter;
use Imago\SpriteGenerator;

$spriteGenerator=new SpriteGenerator();
$spriteGenerator->addFile('file.jpg');
$spriteGenerator->addDir('dir_with_images');
$this->spriteGenerator->addFilter(new CropFilter());
$this->spriteGenerator->save('output_image.png','output.css');

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Recently: every ~345 days

Total

10

Last Release

1966d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4acb0470eeb89d512ba7302a6184b091c03a433695340e6a4e87e75fe87bdbc6?d=identicon)[newclass-pl](/maintainers/newclass-pl)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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