• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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);


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.