[eluser]regal2157[/eluser]
Hi Guys,
I'm trying to do an image resize with codeigniter, but I'm not getting a resized image, nor am I getting any errors. Not sure if it is due to the lack of a library or not... Kinda lost..
This is my code:
Code:
<?php ...
$this->load->library('image_lib');
$img_lib_config['image_library'] = 'gd2';
$img_lib_config['source_image'] = $data['upload_data']['full_path'];
$img_lib_config['maintain_ratio'] = TRUE;
$img_lib_config['width'] = '320';
$img_lib_config['height'] = '280';
$this->load->library('image_lib', $img_lib_config);
if(!$this->image_lib->resize())
{
echo $this->image_lib->display_errors();
die();
}
...
?>
Full path: /Applications/MAMP/htdocs/sample/backtomail/assets/folder/image/is/in/e9d4f858a3d16b0b7f76fbb76b60e0ef.jpg
I've also tried updating the source_image to be the relative path (/assets/folder/image/is/in/filename.ext)
Any ideas here fellow developers?
Thanks,
John