Resizing more than one pic at once |
[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!
[eluser]wiredesignz[/eluser]
Try calling the image library initialize() method with the new $config array for the helper.
[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.
[eluser]wiredesignz[/eluser]
Yes, Definitely use both methods to reset the image library between tasks. Thanks pistolPete |
Welcome Guest, Not a member yet? Register Sign In |