Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Problems using image lib in a loop
#2

[eluser]Mr. Pickle[/eluser]
Found the solution, I had to (re)initialize the image_lib:

First, just call the image_lib without config outside the loop.
After this within the loop I set the settings config for the loop and have the image_lib first cleared and then re-initialized with the settings for that loop.

So outside the loop:
Code:
$this->load->library('image_lib');

And within the loop:
Code:
// Set all the configs
$config['key'] = 'value';

// Clear to be sure
$this->image_lib->clear();

// Initialize
$this->image_lib->initialize($config);

// Resize
$this->image_lib->resize();


Messages In This Thread
[SOLVED] Problems using image lib in a loop - by El Forum - 11-11-2010, 05:08 AM
[SOLVED] Problems using image lib in a loop - by El Forum - 11-11-2010, 05:39 AM
[SOLVED] Problems using image lib in a loop - by El Forum - 03-08-2011, 03:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB