Welcome Guest, Not a member yet? Register   Sign In
about ci image library!!
#1

[eluser]Unknown[/eluser]
when we resizing the images, i want to get two resized images. But the problem is it only creates the 1st image?? what might be the issue?

Code:
$config['image_library'] = 'gd2';
$config['source_image'] = "./main_image_gallery/".$filename;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 120;
$config['height'] = 150;
$this->image_lib->resize();
$this->image_lib->clear();
$this->image_lib->initialize($config);    

$config['image_library'] = 'gd2';
$config['source_image'] = "./main_image_gallery/".$filename;
$config['create_thumb'] = FALSE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 600;
$config['height'] = 500;
$this->image_lib->resize();
$this->image_lib->clear();
$this->image_lib->initialize($config);




Theme © iAndrew 2016 - Forum software by © MyBB