[eluser]behnampmdg3[/eluser]
Code:
public function rotate($have,$ad_id,$photo_id,$photo)
{
var_dump(gd_info());
$config['image_library'] = 'gd2';
$config['source_image'] = base_url('ad_have/ad_id_'.$ad_id.'/'.$photo);
$config['new_image'] = base_url('ad_have/ad_id_'.$ad_id.'/'.$photo);
$config['rotation_angle'] = '90';
$this->image_lib->initialize($config);
$this->image_lib->rotate();
echo $this->image_lib->display_errors();
}
array(12) { ["GD Version"]=> string(27) "bundled (2.0.34 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=> bool(false) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(false) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }
The path to the image is not correct.
Your server does not support the GD function required to process this type of image.