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');
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 ! :)
Way to get tmp file location
Is there a way to save the image in tmp folder and get the location? or edit the copyright properties of the image from the extension itself?
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.