Yii 1.1: ewideimage

An repackaged version of WideImage
11 followers

EWideImage is simply a version of WideImage slightly modified to work more closely with Yii.

Changelog

Version 0.0.2: - WideImage.php and WideImage class changed to EWideImage.php and EWideImage. - Doesn't need to be in any specific directory now, creates it's own alias. - All exceptions derive from CException now.

Requirements

  • PHP 5.2+
  • GD2 extension

Usage

Install under your extensions directory. And include it.

Yii::import('application.extensions.EWideImage.EWideImage');

Then use it:

EWideImage::load('big.png')->resize(50, 30)->saveToFile('small.jpg');
EWideImage::load('pic.jpg')->crop('center', 'center', 90, 50)->output('png');

Resources

WideImage Project Home

Total 1 comment

#5671 report it
yiqing95 at 2011/10/31 11:41am
seems should keep it is , no need to wrapper it

actually i v used it in yii some times ago! just copy the wideimage dir to protected/vendors dir. then :

Yii::import('application.vendors.wideImage.lib.WideImage');
WideImage::load('big.png')->resize(50, 30)->saveToFile('small.jpg');
..

you do to many useless things ! :)

Leave a comment

Please to leave your comment.

Create extension