[eluser]Unknown[/eluser]
I do not understand why, can not see the image that results from this code, in the path. / images_local. although I successfully returns. It is as if the code does not do anything
Code:
$config['image_library'] = 'gd2';
$config['source_image'] = './images_local/restaurantes.jpg';
$config['new_image'] = './images_local/res.jpg';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 50;
$this->load->library('image_lib', $config);
$this->image_lib->initialize($config);
$this->image_lib->resize();
if ( ! $this->image_lib->resize())
{
echo $this->image_lib->display_errors();
}
else
{
echo('yes');
}