1
I built this class that makes a multiupload of images, creates the folders according to the id_year, and then generates the Thumbs of these images as per the foreach wheel. The problem is that the Thumbs are not being generated.
My class Thumb:
function _createThumbnail($filename,$path)
{        
    $config['image_library']    = "gd2";      
    $config['source_image']     = "{$path}/{$filename}";                
    $config['create_thumb']     = TRUE;      
    $config['maintain_ratio']   = TRUE;      
    $config['width'] = "80";      
    $config['height'] = "80";
    $this->load->library('image_lib',$config);
    //die(print_r($this->image_lib->resize()));
    if(!$this->image_lib->resize())
    {
        die(print_r($this->image_lib->display_errors()));
    }      
}