DarkNSF
January 30, 2009, 12:14am
1
http://www.yiiframew…xtension/image/
$image = Yii::app()->image->load($fileLoc);
$image->resize($this->thumbnailMaxWidth, NULL);
$image->save($fileThumbLoc);
Problem is, if you have this in a loop then it keeps trying to reload the GD/ImageMagic driver php object. I think I'll take a stab at trying to fix this, and maybe the author can re upload it?
miles
(Cuiming2355 Cn)
January 31, 2009, 9:01am
2
here?
Image.php line123
// Load the driver
require("drivers/{$this->config['driver']}.php");
yea, that’d be it. i didn’t have time to write up anything, got all tied up working on some other code.
sure go for it, revision 0.2
However, the documentation states that using yii import is the better route…
Yii:import('application.extensions.image.-GD or ImageMagik');
miles
(Cuiming2355 Cn)
February 1, 2009, 2:45am
6
karma for you, thanks mate
ronnbot
(Ronn Abueg)
February 2, 2012, 7:32pm
8
Thanks, this saved me from a couple hours of debugging.