[eluser]WebbHelp[/eluser]
Hi!
I began to use file uploading today with codeigniter and it worked fine, but my GD thumbnail didn't, I think GD is "installed" in xampp?
Or it is the path:
Code:
$imginfo = $this->upload->data(); //Data from the uploaded file
$this->load->library('image_lib');
$config['image_library'] = 'gd2'; //Wich GD framework
$config['source_image'] = './uploades/'. $imginfo['file_name']; //Uploaded image
$config['new_image'] = './uploades_thumb/'. $imginfo['file_name'];
$config['create_thumb'] = TRUE; //Set's to true if it will create a thumb'
$config['maintain_ratio'] = TRUE;
$config['quality'] = 100; //Image quality, 1-100
$config['width'] = 200; //Thumbnail width
$this->load->library('image_lib', $config);
if($this->image_lib->resize()) //If thumbnail is created, put data into the database
You see the path, I got the directory in the same directory as index.php.
Can you see something wrong?
Thanks //WebbHelp
_________
I found the problem
How I don't know but in some way I did include() the gd library class 2 times :S