Welcome Guest, Not a member yet? Register   Sign In
Your server does not support the GD function required to process this type of image.
#1

[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.
#2

[eluser]CroNiX[/eluser]
The docs say the source_image and new_image are supposed to be paths on the filesystem, not a url.
Quote:The path must be a relative or absolute server path, not a URL.
#3

[eluser]behnampmdg3[/eluser]
Hey thanks;

That would be great if they fix the error messages.





Theme © iAndrew 2016 - Forum software by © MyBB