![]() |
Resizing more than one pic at once - 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: Resizing more than one pic at once (/showthread.php?tid=21622) |
Resizing more than one pic at once - El Forum - 08-15-2009 [eluser]Ci beginner[/eluser] Hi there, I got an issue with the image manipulator class of CodeIgniter. The first thumbnail is well-done: Code: function make_thumb_small($path) And the second one looks as following: Code: function make_thumb_medium($path) But as you know, I can't upload the same lib twice. Or at least I think that is the issue. But I don't know how to bypass it. Could you give me some light with this? Thank you! Resizing more than one pic at once - El Forum - 08-16-2009 [eluser]wiredesignz[/eluser] Try calling the image library initialize() method with the new $config array for the helper. Resizing more than one pic at once - El Forum - 08-16-2009 [eluser]pistolPete[/eluser] [quote author="wiredesignz" date="1250430567"]Try calling the image library initialize() method with the new $config array for the helper.[/quote] And use the clear() function: User guide: Quote:The clear function resets all of the values used when processing an image. You will want to call this if you are processing images in a loop. Resizing more than one pic at once - El Forum - 08-16-2009 [eluser]wiredesignz[/eluser] Yes, Definitely use both methods to reset the image library between tasks. Thanks pistolPete ![]() |