Image Manipulation Class - Resize Original AND Create Thumb??? - 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 Class - Resize Original AND Create Thumb??? (/showthread.php?tid=9961) |
Image Manipulation Class - Resize Original AND Create Thumb??? - El Forum - 07-14-2008 [eluser]Muppit[/eluser] According to the docs: Quote:$this->image_lib->resize() it would seem the image manipulation class won't actually resize the original image, AND create a thumbnail from it??? I've tried using various options with no success. Is this correct? In which case, I'd have to resize the image and create a thumbnail from it, then go back and resize the original without creating a thumbnail...seems like a seriously roundabout way of doing it. Is this right or am I missing the mark? Image Manipulation Class - Resize Original AND Create Thumb??? - El Forum - 07-14-2008 [eluser]xpix[/eluser] I think you have to call the resize function 2 times with diffrent configurations. Image Manipulation Class - Resize Original AND Create Thumb??? - El Forum - 07-14-2008 [eluser]Muppit[/eluser] Yeah that's what I've managed to work out so far, using a two step loop with diff. configs each round, I was just hoping there might be something I was missing that meant the original was resized in the process...thanks for the reply xpix Image Manipulation Class - Resize Original AND Create Thumb??? - El Forum - 07-14-2008 [eluser]Muppit[/eluser] Well after much head scratching here's my solution to this problem: Code: $this->load->library('image_lib'); Seems to be the fastest way of doing things. It will iterate through twice, each time loading in the right config array, of which the first one will generate a thumb from the specified image, and the second, resize that original image. Hope it helps anyone having the same issue. Image Manipulation Class - Resize Original AND Create Thumb??? - El Forum - 10-24-2010 [eluser]Unknown[/eluser] [quote author="Muppit" date="1216092518"]Well after much head scratching here's my solution to this problem: Code: $this->load->library('image_lib'); Seems to be the fastest way of doing things. It will iterate through twice, each time loading in the right config array, of which the first one will generate a thumb from the specified image, and the second, resize that original image. Hope it helps anyone having the same issue.[/quote] Thanks! Simple but efficient solution! Image Manipulation Class - Resize Original AND Create Thumb??? - El Forum - 10-24-2010 [eluser]Sire[/eluser] Old topic, but thought you might be interested in this too http://www.matmoo.com/digital-dribble/codeigniter/image_moo/ |