Having a problem with image manipulation in codeigniter - it bombs when I get to $this->image_lib->resize()
. I just can't see the error.
Code:
$imagemanip = array();
$imagemanip['image_library'] = 'gd2';
$imagemanip['source_image'] = '/resources/images/butera-fuma-dolce.jpg';
$imagemanip['new_image'] = '/resources/images/thumb_butera-fuma-dolce.jpg';
$imagemanip['create_thumb'] = TRUE;
$imagemanip['maintain_ratio'] = TRUE;
$imagemanip['width'] = 350;
$imagemanip['height'] = 350;
$this->load->library('image_lib', $imagemanip);
if ( ! $this->image_lib->resize()) {
echo $this->image_lib->display_errors();
}
As I said, it bombs at $this->image_lib->resize()
, showing no further output, and does not generate an error.
gd2 is installed (per phpinfo()
). I can view the original image with plain html tags. What am I doing wrong?