Creating 2 thumb images |
[eluser]EEssam[/eluser]
Hi guys, I need to create 2 thumb images (different sizes). The following code is just creating the first one: Code: $config['image_library'] = 'gd2'; Please help.
[eluser]gon[/eluser]
This is from the user guide: $this->image_lib->clear() 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]EEssam[/eluser]
Hi, As you can see from my code above, the function was called but it still not working.
[eluser]EEssam[/eluser]
The good guy here had the same problem and posted the solution: http://ellislab.com/forums/viewthread/91549/
[eluser]Bramme[/eluser]
Indeed, you shouldn't be loading a library multiple times, that's why lots of them have the initialize function
[eluser]Colin Williams[/eluser]
Yeah, CI uses lazy instantiation, so your second call to $this->load->library() does nothing because the class is already instantiated. |
Welcome Guest, Not a member yet? Register Sign In |