×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: romans can
Added: Jul 20, 2017 7:08 PM
Views: 3
Tags: no tags
  1.  $isim = $this->upload->data('file_name');
  2.                                                  $data = $this->upload->data();
  3.                                                   $config['image_library'] = 'gd2';
  4.                 $config['source_image'] = './uploads/'.$data['file_name'];
  5.                 $config['new_image'] = './uploads/anasayfa/'.$data['file_name'];
  6.                 $config['maintain_ratio'] = FALSE;
  7.                
  8.                 $config['width']    = 350;
  9.                 $config['height']   = 350;
  10.                 $config['x_axis'] = 100;
  11.                                 $config['y_axis'] = 60;
  12.                 $this->load->library('image_lib', $config);
  13.  
  14.                 $this->image_lib->resize();
  15.                 $this->image_lib->clear();
  16.                 $this->image_lib->crop();