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)0420MITPHPPHP &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 3d 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 47% 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

2011d 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

[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495240.6k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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