[eluser]Pana_Ruplahlava[/eluser]
Hi, im using gd2 on my local home server to first just resize and then make thumbnail of picture. But ony work just the first resize. Is it problem of my server, or my code is somehow broken?
Im getting: Your server does not support the GD function required to process this type of image
Output should be 2 images, one with thumb marker...
Code:
$config['image_library'] = 'gd2';
$config['source_image'] = $file_uploaded['full_path'];
$config['maintain_ratio'] = TRUE;
$config['width'] = 125;
$config['height'] = 167;
$this->load->library('image_lib', $config);
$this->image_lib->resize();
echo $this->image_lib->display_errors();
$this->image_lib->clear();
//till here it works properly, resizes and creates new image
$config['image_library'] = 'gd2';
$config['source_image'] = $ristate.$file_uploaded['file_name'];
//tried full path, but this works too, file exists
echo $ristate.$file_uploaded['file_name'];
$config['maintain_ratio'] = TRUE;
$config['create_thumb'] = TRUE;
$config['thumb_marker'] = '_100x100';
$config['width'] = 100;
$config['height'] = 100;
$this->load->initialize($config);
$this->image_lib->resize();
echo $this->image_lib->display_errors();
//this is where im getting an error :-/
//Your server does not support the GD function required to process this type of image