PHPackages                             prolix/imagine - 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. prolix/imagine

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

prolix/imagine
==============

Image processing for PHP 5.3

v1.2.6(6y ago)07951MITPHPPHP &gt;=5.3.2

Since Oct 6Pushed 6y ago2 watchersCompare

[ Source](https://github.com/prolixtechnikos/Imagine)[ Packagist](https://packagist.org/packages/prolix/imagine)[ Docs](http://imagine.readthedocs.org/)[ RSS](/packages/prolix-imagine/feed)WikiDiscussions develop Synced 3d ago

READMEChangelog (7)Dependencies (2)Versions (35)Used By (1)

Imagine
=======

[](#imagine)

[![Build Status](https://camo.githubusercontent.com/b37d609e92eb5a4f28a9d811b01d88c69154b3187633730d6d8135b50233abb1/68747470733a2f2f7472617669732d63692e6f72672f6176616c616e6368653132332f496d6167696e652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/avalanche123/Imagine)

Tweet about it using the [\#php\_imagine](https://twitter.com/search?q=%23php_imagine) hashtag.

Image manipulation library for PHP 5.3 inspired by Python's PIL and other image libraries.

Requirements
------------

[](#requirements)

The Imagine library has the following requirements:

- PHP 5.3+

Depending on the chosen Image implementation, you may need one of the following:

- GD2
- Imagick
- Gmagick

### Installation using composer

[](#installation-using-composer)

`php composer.phar require imagine/imagine`

Basic Principles
----------------

[](#basic-principles)

The main purpose of Imagine is to provide all the necessary functionality to bring all native low level image processing libraries in PHP to the same simple and intuitive OO API.

Several things are necessary to accomplish that:

- Image manipulation tools, such as resize, crop, etc.
- Drawing API - to create basic shapes and advanced charts, write text on the image
- Masking functionality - ability to apply black&amp;white or grayscale images as masks, leading to semi-transparency or absolute transparency of the image the mask is being applied to

The above tools should be the basic foundation for a more powerful set of tools that are called `Filters` in Imagine.

Some of the ideas for upcoming filters:

- Charting and graphing filters - pie and bar charts, linear graphs with annotations
- Reflection - apple style
- Rounded corners - web 2.0

Documentation
-------------

[](#documentation)

- [Hosted by Read The Docs](http://imagine.readthedocs.org/)

Presentations
-------------

[](#presentations)

- [Introduction to Imagine](http://www.slideshare.net/avalanche123/introduction-toimagine)
- [How to Take Over the World with Lithium](http://speakerdeck.com/u/nateabele/p/how-to-take-over-the-world-with-lithium?slide=33)

Articles
--------

[](#articles)

- [Image Processing with Imagine](http://www.phparch.com/2011/03/image-processing-with-imagine)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~84 days

Total

28

Last Release

2345d ago

Major Versions

v0.7.2 → v1.2.12019-01-10

PHP version history (2 changes)0.2.0PHP &gt;=5.3.0

0.2.5PHP &gt;=5.3.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f7ebbb7fd8d5bed650ff90bfa01d5c9962199a26d76f25439702a1ab92e4caf?d=identicon)[kuldippujara](/maintainers/kuldippujara)

---

Top Contributors

[![avalanche123](https://avatars.githubusercontent.com/u/83289?v=4)](https://github.com/avalanche123 "avalanche123 (479 commits)")[![romainneutron](https://avatars.githubusercontent.com/u/137574?v=4)](https://github.com/romainneutron "romainneutron (357 commits)")[![rjkip](https://avatars.githubusercontent.com/u/1734555?v=4)](https://github.com/rjkip "rjkip (21 commits)")[![vlakoff](https://avatars.githubusercontent.com/u/544424?v=4)](https://github.com/vlakoff "vlakoff (20 commits)")[![mitsuhiko](https://avatars.githubusercontent.com/u/7396?v=4)](https://github.com/mitsuhiko "mitsuhiko (18 commits)")[![nicodmf](https://avatars.githubusercontent.com/u/173332?v=4)](https://github.com/nicodmf "nicodmf (12 commits)")[![christeredvartsen](https://avatars.githubusercontent.com/u/25402?v=4)](https://github.com/christeredvartsen "christeredvartsen (12 commits)")[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (11 commits)")[![burzum](https://avatars.githubusercontent.com/u/162789?v=4)](https://github.com/burzum "burzum (11 commits)")[![anthonysterling](https://avatars.githubusercontent.com/u/159960?v=4)](https://github.com/anthonysterling "anthonysterling (9 commits)")[![ravindrakhokharia](https://avatars.githubusercontent.com/u/2654612?v=4)](https://github.com/ravindrakhokharia "ravindrakhokharia (7 commits)")[![jmikola](https://avatars.githubusercontent.com/u/244663?v=4)](https://github.com/jmikola "jmikola (7 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (6 commits)")[![RadekDvorak](https://avatars.githubusercontent.com/u/672781?v=4)](https://github.com/RadekDvorak "RadekDvorak (5 commits)")[![rejinka](https://avatars.githubusercontent.com/u/831348?v=4)](https://github.com/rejinka "rejinka (5 commits)")[![Richtermeister](https://avatars.githubusercontent.com/u/624921?v=4)](https://github.com/Richtermeister "Richtermeister (4 commits)")[![nokrosis](https://avatars.githubusercontent.com/u/130460?v=4)](https://github.com/nokrosis "nokrosis (4 commits)")[![rouffj](https://avatars.githubusercontent.com/u/24047?v=4)](https://github.com/rouffj "rouffj (3 commits)")[![chellem](https://avatars.githubusercontent.com/u/570856?v=4)](https://github.com/chellem "chellem (3 commits)")[![lsmith77](https://avatars.githubusercontent.com/u/300279?v=4)](https://github.com/lsmith77 "lsmith77 (3 commits)")

---

Tags

image manipulationimage processingdrawinggraphics

### Embed Badge

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

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

###  Alternatives

[imagine/imagine

Image processing for PHP

4.5k72.4M341](/packages/imagine-imagine)[rokka/imagine-vips

libvips adapter for imagine

43564.1k5](/packages/rokka-imagine-vips)[pixelandtonic/imagine

Image processing for PHP

133.4M3](/packages/pixelandtonic-imagine)[batdan/midjourney-api-php

Generate images Midjourney (Discord API). URLs in prompt accepted

222.2k](/packages/batdan-midjourney-api-php)[orchestra/imagine

Imagine (Wrapper) Component for Laravel

70207.0k3](/packages/orchestra-imagine)[ace-of-aces/laravel-image-transform-url

Easy, URL-based image transformations inspired by Cloudflare Images.

1756.4k](/packages/ace-of-aces-laravel-image-transform-url)

PHPackages © 2026

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