CodeIgniter Forums
Image Manipulation - Can we resize original image AND the thumbnail? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Image Manipulation - Can we resize original image AND the thumbnail? (/showthread.php?tid=3673)



Image Manipulation - Can we resize original image AND the thumbnail? - El Forum - 10-16-2007

[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.