The CI library for image manipulation
The Codeigniter latest is Version 3.1.9
http://www.matmoo.com/digital-dribble/codeigniter/image_moo/
- In the Codeigniter folder create a new folder name upload
- application->libraries->image_moo (PHP Image manipulation class)
- controllers->Upload (Upload, Delete, Image Crop)
- application->config->routes (
$route['default_controller'] = 'upload';
) - application->views->upload.php (HTML Form)
public function image_size($image, $x, $y){
$this->image_moo
->load($image)
->resize_crop($x, $y)
->save_pa($prepend = '', $append = '-'.$x.'x'.$y, $overwrite = TRUE);
}
$this->image_size('upload/test-name.jpg', 500, 300);`