FUEL CMS User Guide : Version 1.5.2


MY_Image_lib Class

The MY_Image_lib Class extends CI_Image_lib result class. It adds a couple methods listed below:

$this->image_lib->resize_and_crop()

$config['source_image']	= '/path/to/image/mypic.jpg';
$config['width']	 = 75;
$config['height']	= 50;

$this->load->library('image_lib', $config); 

$this->image_lib->resize_and_crop();

$this->image_lib->convert()

Converts an image to a different format. Borrowed from the CodeIgniter Forum.

$config['source_image']	= '/path/to/image/mypic.gif';

$this->load->library('image_lib', $config); 

$this->image_lib->convert('jpg');