[eluser]alebenson[/eluser]
Hi there!
Im trying to do a thumbnail so first thing i did was
Code:
$this->load->library('image_lib');
$config['image_library'] = 'GD';
$config['source_image'] = $imagenTMP['full_path'];
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 30;
$config['height'] = 50;
$this->load->library('image_lib', $config);
if ( ! $this->image_lib->resize())
{
echo $this->image_lib->display_errors();
}
and i got this error
Code:
Your server does not support the GD function required to process this type of image.
i've already try with $config['image_library'] = 'GD2' and the same thing happend
sent an email with the guys from the server, i ask what lib they have installed. There response was GD and GD2
ok, so i try with
Code:
$this->image_lib->rotate()
and i got this error
Code:
"An angle of rotation is required to rotate the image."
then i did just
Code:
$this->load->library('image_lib');
$config['image_library'] = 'GD';
$config['rotation_angle'] = '90';
$this->load->library('image_lib', $config);
if ( ! $this->image_lib->rotate())
{
echo $this->image_lib->display_errors();
}
and i got the same error
Code:
An angle of rotation is required to rotate the image.
so the thing here is somewhere i dont know
any ideas?