EWideImage is simply a version of WideImage slightly modified to work more closely with Yii.
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.
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');
Total 1 comment
actually i v used it in yii some times ago! just copy the wideimage dir to protected/vendors dir. then :
you do to many useless things ! :)
Leave a comment
Please login to leave your comment.