![]() |
Image multiple resize - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Image multiple resize (/showthread.php?tid=52772) |
Image multiple resize - El Forum - 06-26-2012 [eluser]Kentish[/eluser] Hello Am trying to get several sizes out of an image that i upload. I have used tried the resize() function but its resizing the uploaded image only once. i.e using the first configurations only. Here is the code : Code: public function resize_file($filename) Image multiple resize - El Forum - 06-26-2012 [eluser]Jason Hamilton-Mascioli[/eluser] Add this line to your foreach loop Code: $this->image_lib->clear() Image multiple resize - El Forum - 06-26-2012 [eluser]Kentish[/eluser] I have added it but still same prob... Image multiple resize - El Forum - 06-26-2012 [eluser]Otemu[/eluser] Auto load the library, then use: Code: $this->image_lib->initialize($config); Code: $this->load->library('image_lib', $config); Image multiple resize - El Forum - 06-26-2012 [eluser]Kentish[/eluser] this one works, thanks to both ![]() |