• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image Manipulation - Can we resize original image AND the thumbnail?

#1
[eluser]codelearn[/eluser]
Hey guys,

Does anyone know if it is possible to use the Image Manipulation class to resize the thumbnail and the original image at the same time? Right now my code will only resize the thumbnail as below:

Code:
$config['image_library'] = 'GD';
$config['source_image'] = './assets/rest_photos/'.$filename;
$config['maintain_ratio'] = TRUE;
$config['create_thumb'] = TRUE;
$config['quality'] = 100;
$config['width'] = 110;
$config['height'] = 110;
            
$this->load->library('image_lib', $config);
$this->image_lib->resize();

Thanks for any input.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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