Имам проблем със създаването на thumbnail с codeignitr:
Дава този error:
The path to the image is not correct.
Your server does not support the GD function required to process this type of image.
Дава този error:
The path to the image is not correct.
Your server does not support the GD function required to process this type of image.
PHP:
$config['image_library'] = 'gd2';
$config['source_image'] = $this->session->userdata('news_upload_image')."111.jpg";
$config['new_image'] = $this->session->userdata('news_upload_image')."thumb/";
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 50;
$this->load->library('image_lib', $config);
$this->image_lib->resize();
echo $this->image_lib->display_errors();