My mistakes

Codeigniter Image resize library problem on multiple image resize

Posted on: March 2, 2009

$this->load->library(“image_lib/”,$config);

for loop:

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

end for loop

When using this library repeatedly it will initialize the image properties at once only.

It uses the existing instance for the remaining calls

To solve this problem call the initialize function manually.

Advertisements

10 Responses to "Codeigniter Image resize library problem on multiple image resize"

you are a lifesaver, thank you so much.

Thank you very much, that solved my multiple resize problem too!

great, that solved my problem!!

please could you put the code details because the problem don’t solve with me

thanks

Put the
$this->image_lib->initialize($config);
on top of the image re-size function.

This will re-initialize the image settings for each image re-size.
Hope this is what you are looking for.

Great… solved my problem

Very usefull post πŸ™‚ THank you!

Thanks for the info! Solved my problem πŸ™‚

Nice, I was able to fix my thumbnails problem on rrrather.com thanks to this

thanks dude! still useful after all those years πŸ™‚

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: