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 6, 2018 9:08 AM
Views: 16
  1. $config['image_library'] = 'imagemagick';
  2. $config['library_path'] = '/usr/X11R6/bin/';
  3. $config['source_image'] = '/path/to/image/mypic.jpg';
  4. $config['x_axis'] = 100;
  5. $config['y_axis'] = 60;
  6.  
  7. $this->image_lib->initialize($config);
  8.  
  9. if ( ! $this->image_lib->crop())
  10. {
  11.         echo $this->image_lib->display_errors();
  12. }