EWideImage is simply a version of WideImage slightly modified to work more closely with Yii.
- 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.
- PHP 5.2+
- GD2 extension
Install under your extensions directory. And include it.
Then use it:
EWideImage::load('big.png')->resize(50, 30)->saveToFile('small.jpg'); EWideImage::load('pic.jpg')->crop('center', 'center', 90, 50)->output('png');