Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 5, 2018 8:44 AM
Views: 13
  1. $config["source_image"] = '/home/eshop/stage/application/cache/images/leaders.jpg';
  2. $config['new_image'] = '/home/eshop/stage/application/cache/images/leaders-thumb.jpg';
  3. $config["width"] = 100;
  4. $config["height"] = 100;
  5.  
  6. $this->load->library('image_lib', $config);
  7. $this->image_lib->fit();