PHPackages                             z\_bodya/yii-image - 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. z\_bodya/yii-image

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

z\_bodya/yii-image
==================

Port of Kohana Image Library to Yii

1.0.0(13y ago)15.4k↓50%21BSD-3-ClausePHP

Since Apr 15Pushed 11y ago2 watchersCompare

[ Source](https://github.com/zxbodya/yii-image)[ Packagist](https://packagist.org/packages/z_bodya/yii-image)[ RSS](/packages/z-bodya-yii-image/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (1)

```
This is a modified version of the Image Yii extension.

There's 3 new functions :
 - grayscale
 - emboss
 - negate

The ImageMagick Driver is optimized greatly by appending arguments for convert instead
of reading / saving file for each function. The temp image copy in this driver is now useless
and was removed too.

Author : Parcouss

First release (this is the following) :

说明：
移植自Kohana的Image类库

英文文档地址：http://docs.kohanaphp.com/libraries/image
中文文档地址：http://khnfans.cn/docs/libraries/image

------------------------------------------------------------------------------

安装：
将image文件夹放入application的extensions文件中即可

------------------------------------------------------------------------------

使用方法：

第一种：
配置：
在application的main config的components中添加以下配置
'image'=>array(
            'class'=>'application.extensions.image.CImageComponent',
            // GD or ImageMagick
            'driver'=>'GD',
            // ImageMagick setup path
            'params'=>array('directory'=>'D:/Program Files/ImageMagick-6.4.8-Q16'),
        ),

调用方法()：
$image = Yii::app()->image->load('images/test.jpg');
$image->resize(400, 100)->rotate(-45)->quality(75)->sharpen(20);
$image->save(); // or $image->save('images/small.jpg');

第二种：
Yii::import('application.extensions.image.Image');
$image = new Image('images/test.jpg');
$image->resize(400, 100)->rotate(-45)->quality(75)->sharpen(20);
$image->render();
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

4776d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f47929617cbb1dee5a095baccb865ab5e30ad7155f5b30b081b50249806593d?d=identicon)[zxbodya](/maintainers/zxbodya)

---

Top Contributors

[![zxbodya](https://avatars.githubusercontent.com/u/446117?v=4)](https://github.com/zxbodya "zxbodya (16 commits)")

---

Tags

image

### Embed Badge

![Health badge](/badges/z-bodya-yii-image/health.svg)

```
[![Health](https://phpackages.com/badges/z-bodya-yii-image/health.svg)](https://phpackages.com/packages/z-bodya-yii-image)
```

###  Alternatives

[intervention/image

PHP Image Processing

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

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[liip/imagine-bundle

This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.

1.7k38.3M217](/packages/liip-imagine-bundle)[spatie/image

Manipulate images with an expressive API

1.4k54.4M138](/packages/spatie-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[intervention/gif

PHP GIF Encoder/Decoder

5520.3M9](/packages/intervention-gif)

PHPackages © 2026

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