php - How to create mutiple thumbnails for multiple image in code igniter -


i try create multiple thumbnail multiple image. create 1 image , try increase original image width , height , not increasing

please correct code

here code....

uploading multiple image

   <?php     if(!$this->input->post('upload')){      $this->create();    }     else{     $data['banner_img1']    =$_files['files']['name'][0];    $data['banner_img2']    =$_files['files']['name'][1];    $data['banner_img3']    =$_files['files']['name'][2];     $update_id=$this->uri->segment(3);      /* create config upload library */     $config=array(     'allowed_types' => 'jpg|jpeg|png|gif',     'upload_path' => $this->gallery_path,     'max_size' => '2000'     );    /* load upload library */      $this->load->library('upload');     $this->upload->initialize($config);       if($this->upload->do_multi_upload('files')){      }else{         echo $this->upload->display_errors();     }     $image_data=$this->upload->data();       /* create config image library */       $config = array(         'source_image' => $image_data['full_path'],         'new_image' => $this->gallery_path.'/banner_thumbs',                     'maintain_ratio' =>true,         'width' => '1200',         'height'=> '600'      );  /* load image library */     $this->load->library('image_lib');     $this->image_lib->initialize($config);     if($this->image_lib->resize('files')){         if(is_numeric($update_id)){            $this->_update($update_id, $data);          }else{            $this->_insert($data);         }         }else{         echo $this->image_lib->display_errors();     } 

?>


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -