Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

imagelib thourgh class in codeigniter

$config['image_library'] = 'gd2';
$config['source_image'] = '/path/to/image/mypic.jpg';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width']         = 75;
$config['height']       = 50;

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

$this->image_lib->resize();
 
PREVIOUS NEXT
Tagged: #imagelib #thourgh #class #codeigniter
ADD COMMENT
Topic
Name
4+4 =