PHPackages                             mouf/utils.graphics.mouf-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. mouf/utils.graphics.mouf-imagine

ActiveMouf-library[Image &amp; Media](/categories/media)

mouf/utils.graphics.mouf-imagine
================================

Wrapper around the Imagine library, that allows to associate a set of Imagine Filters to an URL, like the LiipImagineBundle does for Symfony

v2.2.0(7y ago)16.6k7[1 issues](https://github.com/thecodingmachine/utils.graphics.mouf-imagine/issues)MITPHPPHP &gt;=7.0

Since Apr 7Pushed 7y ago4 watchersCompare

[ Source](https://github.com/thecodingmachine/utils.graphics.mouf-imagine)[ Packagist](https://packagist.org/packages/mouf/utils.graphics.mouf-imagine)[ Docs](https://github.com/thecodingmachine/utils.graphics.mouf-imagine)[ RSS](/packages/mouf-utilsgraphicsmouf-imagine/feed)WikiDiscussions 2.2 Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (6)Used By (0)

Mouf Imagine
============

[](#mouf-imagine)

Mouf Imagine uses the [imagine/imagine](https://github.com/avalanche123/Imagine) library to create automated image transformations based on images' paths.

> A big thank to [Romain Neutron](https://github.com/romainneutron) for his great work, the quality of this library allowed us to integrate it in our framework with a few lines of code.

This is a module for the [Mouf PHP framework](http://mouf-php.com). In order to use this module, your code should also use [Splash, the MVC router for Mouf](http://mouf-php.com/packages/mouf/mvc.splash/index.md).

The concept
-----------

[](#the-concept)

Let's say someone uploaded this image, But you need to display it in a smaller size, and in grayscale[![](doc/img/imagine.jpg)](doc/img/imagine.jpg) ⇒ [![](doc/img/imagine-preset.jpg)](doc/img/imagine-preset.jpg) \[WEB\_ROOT\]/uploads/image.jpg  \[WEB\_ROOT\]/300x300\_black\_n\_white/image.jpg How to ?
--------

[](#how-to-)

This is very simple ! All you have to do is create an instance of the `ImagePresetController` class :

[![](doc/img/simple-instance.png)](doc/img/simple-instance.png)

In fact, what this package does for you is : apply a set of imagine filters on the original image, and display the image after saving it in the desired folder. All the rest is done by Imaging filters.

Advanced features
-----------------

[](#advanced-features)

We will try to get some optimisations in Imagine code (more explicit constructors, etc...) so it will be easier to integrate that library in mouf. Moreover, for advanced image manipulation, please chekout the [utils.graphics.mouf-imagine-addons](https://github.com/thecodingmachine/utils.graphics.mouf-imagine-addons) package that will soon provide helpers and predefined advanced filters around the exising ones.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

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

Recently: every ~240 days

Total

6

Last Release

2730d ago

Major Versions

1.0.x-dev → 2.0.x-dev2016-04-11

PHP version history (2 changes)1.0.x-devPHP &gt;=5.3.0

2.1.x-devPHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

---

Top Contributors

[![nguyenk](https://avatars.githubusercontent.com/u/2227554?v=4)](https://github.com/nguyenk "nguyenk (10 commits)")[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (7 commits)")[![vaidiep](https://avatars.githubusercontent.com/u/2227695?v=4)](https://github.com/vaidiep "vaidiep (7 commits)")[![ThibBal](https://avatars.githubusercontent.com/u/6185745?v=4)](https://github.com/ThibBal "ThibBal (5 commits)")[![charlesc-TCM](https://avatars.githubusercontent.com/u/124873336?v=4)](https://github.com/charlesc-TCM "charlesc-TCM (2 commits)")[![josealbea](https://avatars.githubusercontent.com/u/2890262?v=4)](https://github.com/josealbea "josealbea (1 commits)")[![TheoBiron](https://avatars.githubusercontent.com/u/7087053?v=4)](https://github.com/TheoBiron "TheoBiron (1 commits)")

---

Tags

thumbnailmoufimage cachegenerate image

### Embed Badge

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

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

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

860918.1k11](/packages/sybio-image-workshop)[h4cc/wkhtmltoimage-amd64

Convert html to image using webkit (qtwebkit). Static linked linux binary for amd64 systems.

20110.7M15](/packages/h4cc-wkhtmltoimage-amd64)[intervention/image-laravel

Laravel Integration of Intervention Image

1536.5M102](/packages/intervention-image-laravel)[folklore/image

Image manipulation library for Laravel 5 based on Imagine and inspired by Croppa for easy url based manipulation

270248.2k5](/packages/folklore-image)[james-heinrich/phpthumb

The PHP thumbnail generator

318516.1k6](/packages/james-heinrich-phpthumb)

PHPackages © 2026

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