![]() |
Simple Resize Model Setup - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1) +--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3) +--- Thread: Simple Resize Model Setup (/showthread.php?tid=958) |
Simple Resize Model Setup - wolfgang1983 - 02-01-2015 Another quick little code came up with if any one wants to use. If you would like to resize images with out having to put a resize function in each controller each time, you could use this model and then in your controller All you would have to enter is $this->image_resize->resize('1.jpg', 100, 100); the first one is image name, the second part is image width size and third is image height. make sure load model of course in controller. PHP Code: <?php |