CodeIgniter Forums
Your server does not support the GD function required to process this type of image. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Your server does not support the GD function required to process this type of image. (/showthread.php?tid=60211)



Your server does not support the GD function required to process this type of image. - El Forum - 02-05-2014

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


Your server does not support the GD function required to process this type of image. - El Forum - 02-05-2014

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



Your server does not support the GD function required to process this type of image. - El Forum - 02-05-2014

[eluser]behnampmdg3[/eluser]
Hey thanks;

That would be great if they fix the error messages.