[eluser]ratna[/eluser]
i want to make the thumb of the uploaded images. Images upload successfully but the relevant thumbs are not being made. the following code shows no error but i don't get the thumb of the uploaded image. plz suggest.
here is the code !!!!!!!
$config[‘upload_path’] = ‘./uploads/’;
$config[‘allowed_types’] = ‘gif|jpg|png’;
$config[‘max_size’] = ‘100’;
$config[‘max_width’] = ‘1024’;
$config[‘max_height’] = ‘700’;
$this->load->library(‘upload’, $config);
if ( ! $this->upload->do_upload())
{
$error = array(‘error’ => $this->upload->display_errors());
$this->load->view(‘imageResizeV’, $error);
}
$config[‘image_library’] = ‘gd2’;
$config[‘source_image’] =‘uploads/photoname.jpg’;
$config[‘create_thumb’] = TRUE;
$config[‘maintain_ratio’] = TRUE;
$config[‘width’] = 75;
$config[‘height’] = 100;
$this->load->library(‘image_lib’, $config);
if(!$this->image_lib->resize())
{
echo $this->image_lib->display_errors();
}