Welcome Guest, Not a member yet? Register   Sign In
Image Manipulation Class weirdness
#1

[eluser]tmcw[/eluser]
So, I'm going to be doing plenty of resizing and thumbnailing for my current project. The image manipulation class looks great, and might keep me sane dealing with GD2/Imagemagick. But, I've gotta ask - the style that it is invoked, with a config array specifying all of the options seems insane. First off, it's reasonable to assume that people are doing more than one operation per controller, so how can you do that, after the library is already loaded? Also, what's preventing us from just sending that bunch of variables with each call to resize(), etc?

Can someone clarify the thinking behind this and how to use it? Thanks.
#2

[eluser]wiredesignz[/eluser]
You can pass a new config array to image_lib and then re-initialize.

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




Theme © iAndrew 2016 - Forum software by © MyBB