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:09 AM
Views: 6
  1. $config['image_library'] = 'netpbm';
  2. $config['library_path'] = '/usr/bin/';
  3. $config['source_image'] = '/path/to/image/mypic.jpg';
  4. $config['rotation_angle'] = 'hor';
  5.  
  6. $this->image_lib->initialize($config);
  7.  
  8. if ( ! $this->image_lib->rotate())
  9. {
  10.         echo $this->image_lib->display_errors();
  11. }