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

ActiveYii2-extension[Image &amp; Media](/categories/media)

yii2-extensions/imagine
=======================

The Imagine integration for the Yii framework.

19[1 PRs](https://github.com/yii2-extensions/imagine/pulls)PHP

Since Oct 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yii2-extensions/imagine)[ Packagist](https://packagist.org/packages/yii2-extensions/imagine)[ RSS](/packages/yii2-extensions-imagine/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

 [ ![](https://camo.githubusercontent.com/cc75562bca6e54e98046e4fb187ef8d96c997a8f31c6f4d2f6ed0c816413b47a/68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f696d6167652f7969695f6c6f676f5f6c696768742e737667) ](https://github.com/yii2-extensions/imagine)

Imagine
=======

[](#imagine)

 [ ![php-version](https://camo.githubusercontent.com/cfe9179013aaeb962182231f5cc56946d96d3c7356e64008b58bad1025cfb1e9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e312d373837434235) ](https://www.php.net/releases/8.1/en.php) [ ![yii2-version](https://camo.githubusercontent.com/f946cb5d9010fb3cc3f9d9530b51fee224bdbabe1345dd3f090dfbca82446217/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5969693225323076657273696f6e2d322e322d626c7565) ](https://github.com/yiisoft/yii2/tree/2.2) [ ![PHPUnit](https://github.com/yii2-extensions/imagine/actions/workflows/build.yml/badge.svg) ](https://github.com/yii2-extensions/imagine/actions/workflows/build.yml) [ ![Codecov](https://camo.githubusercontent.com/c9f0abeb9273c1755611c6bb5e4c786dfce3a665416a69a642ec27366caf75ca/68747470733a2f2f636f6465636f762e696f2f67682f796969322d657874656e73696f6e732f696d6167696e652f67726170682f62616467652e7376673f746f6b656e3d537831476c4765386e32) ](https://codecov.io/gh/yii2-extensions/imagine) [ ![PHPStan](https://github.com/yii2-extensions/gii/actions/workflows/static.yml/badge.svg) ](https://github.com/yii2-extensions/imagine/actions/workflows/static.yml) [ ![PHPStan level](https://camo.githubusercontent.com/6c5c748275a84829b44cdb6af90dc6f18066aac681877ed4a07bb197b43d9beb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2532306c6576656c2d332d626c7565) ](https://github.com/yii2-extensions/imagine/actions/workflows/static.yml) [ ![Code style](https://camo.githubusercontent.com/635b8d99d936bb4f60a21ae6d0db83a1be22f421861dda93f297b51f809267d4/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3730383434373133362f736869656c643f6272616e63683d6d61696e) ](https://github.styleci.io/repos/708447136?branch=main)

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

[](#installation)

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

Either run

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

```

or add

```
"yii2-extensions/imagine": "dev-main"

```

to the require-dev section of your `composer.json` file.

Usage
-----

[](#usage)

This extension is a wrapper to the [Imagine](https://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]);
```

Testing
-------

[](#testing)

[Check the documentation testing](/docs/testing.md) to learn about testing.

Our social networks
-------------------

[](#our-social-networks)

[![Twitter](https://camo.githubusercontent.com/d077c362ac639792171af8bc002ee827816733dfc0925f70b557e6d151022226/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f747769747465722d666f6c6c6f772d3144413146323f6c6f676f3d74776974746572266c6f676f436f6c6f723d314441314632266c6162656c436f6c6f723d3535353535353f7374796c653d666c6174)](https://twitter.com/Terabytesoftw)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/524d2b46690f41fce7188d369488a35e7624e6c5a264d82aacd08548bfd156ab?d=identicon)[terabytesoftw](/maintainers/terabytesoftw)

---

Top Contributors

[![terabytesoftw](https://avatars.githubusercontent.com/u/42547589?v=4)](https://github.com/terabytesoftw "terabytesoftw (2 commits)")

### Embed Badge

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

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

###  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)
