Using the image extension I’m getting and Image file not found error. Here is my code
$test = Yii::app()->request->baseUrl.'/galleries/1/pictures/'.$firstPict;
$image = Yii::app()->image->load($test);
$image->resize(400, 400)->rotate(-45)->quality(75)->sharpen(20);
$image->save();
I have also tried this.
$test = Yii::app()->basePath.'/galleries/1/pictures/'.$firstPict;
$image = Yii::app()->image->load($test);
$image->resize(400, 400)->rotate(-45)->quality(75)->sharpen(20);
$image->save();
This works when I use it in the carousel bootstrap widget, But trying to use it with this Image extension it doesnt work
'slides'=>array(
array(
'image'=>array('src'=>Yii::app()->request->baseUrl.'/galleries/1/pictures/'.$firstPict),
),