Problem resizing image using Code Ignitor1.7.3
Posted
by
Yashwant Chavan
on Stack Overflow
See other posts from Stack Overflow
or by Yashwant Chavan
Published on 2010-12-21T05:04:05Z
Indexed on
2010/12/21
5:31 UTC
Read the original article
Hit count: 312
Following is the code which resize the image, but here i am not able to resize the image
function processHome(){
$this->load->library('image_lib');
$img_path = base_url().'img/image/50X50/ori.jpeg';
$config['image_library'] = 'gd2';
$config['source_image'] = $img_path;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 50;
$config['height'] = 50;
$this->load->library('image_lib', $config);
$this->image_lib->resize();
if ( ! $this->image_lib->resize()){
echo $this->image_lib->display_errors();
}
echo "No error";
exit;
$this->load->view('index', $data);
}
© Stack Overflow or respective owner