PHPackages                             indicalabs/yii2-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. indicalabs/yii2-imagine

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

indicalabs/yii2-imagine
=======================

The Imagine integration for the Yii framework

2.1.0(9y ago)06BSD-3-ClausePHP

Since Apr 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/indicalabs/yii2-imagine)[ Packagist](https://packagist.org/packages/indicalabs/yii2-imagine)[ RSS](/packages/indicalabs-yii2-imagine/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (9)Used By (0)

 [ ![](https://camo.githubusercontent.com/ef6d3b7a910bff84e0e5bc71b1c3530a22dcf7d65ff85daab4a47290a8af5f8a/687474703a2f2f696d6167696e652e72656164746865646f63732e696f2f656e2f6c61746573742f5f7374617469632f6c6f676f2e706e67) ](http://imagine.readthedocs.org/)

Imagine Extension for Yii 2
===========================

[](#imagine-extension-for-yii-2)

This extension adds most common image functions and also acts as a wrapper to [Imagine](http://imagine.readthedocs.org/)image manipulation library for [Yii framework 2.0](http://www.yiiframework.com).

For license information check the [LICENSE](LICENSE.md)-file.

[![Latest Stable Version](https://camo.githubusercontent.com/03e64334e54011cceadc7cfbfb8ab3fb786862c22ba1e8c4b7e316b1b07a420e/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d696d6167696e652f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/yii2-imagine)[![Total Downloads](https://camo.githubusercontent.com/311817c66ab4ac5efb39d3f3348d26d2423759db9273b79452d040e96cd2bfb2/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d696d6167696e652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/yii2-imagine)[![Build Status](https://camo.githubusercontent.com/c710ad612a34e6b29435fd9a46a79b2ca80c958f2a2c0561b19f361d3497b7a8/68747470733a2f2f7472617669732d63692e6f72672f796969736f66742f796969322d696d6167696e652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yiisoft/yii2-imagine)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist yiisoft/yii2-imagine

```

or add

```
"yiisoft/yii2-imagine": "~2.1.0"
```

to the `require` section of your composer.json.

Usage &amp; Documentation
-------------------------

[](#usage--documentation)

This extension is a wrapper to the [Imagine](http://imagine.readthedocs.org/) and also adds the most commonly used image manipulation methods.

The following example shows how to use this extension:

```
use yii\imagine\Image;

// frame, rotate and save an image
Image::frame('path/to/image.jpg', 5, '666', 0)
    ->rotate(-8)
    ->save('path/to/destination/image.jpg', ['jpeg_quality' => 50]);
```

Note that each `Image` method returns an instance of `\Imagine\Image\ImageInterface`. This means you can make use of the methods included in the `Imagine` library:

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity68

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

Recently: every ~174 days

Total

8

Last Release

3478d ago

### Community

Maintainers

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

---

Top Contributors

[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (24 commits)")[![qiangxue](https://avatars.githubusercontent.com/u/993322?v=4)](https://github.com/qiangxue "qiangxue (16 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (12 commits)")[![Renkas](https://avatars.githubusercontent.com/u/5357180?v=4)](https://github.com/Renkas "Renkas (9 commits)")[![VenuNarukulla](https://avatars.githubusercontent.com/u/3653887?v=4)](https://github.com/VenuNarukulla "VenuNarukulla (3 commits)")[![pana1990](https://avatars.githubusercontent.com/u/6630197?v=4)](https://github.com/pana1990 "pana1990 (3 commits)")[![klevron](https://avatars.githubusercontent.com/u/4560725?v=4)](https://github.com/klevron "klevron (2 commits)")[![SDKiller](https://avatars.githubusercontent.com/u/2150916?v=4)](https://github.com/SDKiller "SDKiller (2 commits)")[![HaruAtari](https://avatars.githubusercontent.com/u/3523420?v=4)](https://github.com/HaruAtari "HaruAtari (1 commits)")[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (1 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (1 commits)")[![SonicGD](https://avatars.githubusercontent.com/u/1222013?v=4)](https://github.com/SonicGD "SonicGD (1 commits)")[![nadar](https://avatars.githubusercontent.com/u/3417221?v=4)](https://github.com/nadar "nadar (1 commits)")[![klimov-paul](https://avatars.githubusercontent.com/u/1482054?v=4)](https://github.com/klimov-paul "klimov-paul (1 commits)")[![andku83](https://avatars.githubusercontent.com/u/16827409?v=4)](https://github.com/andku83 "andku83 (1 commits)")

---

Tags

helperimageimagineyii2

### Embed Badge

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

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

###  Alternatives

[yiisoft/yii2-imagine

The Imagine integration for the Yii framework

2865.4M275](/packages/yiisoft-yii2-imagine)

PHPackages © 2026

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