[eluser]SailorJohn[/eluser]
Having a problem with image manipulation.
From my test page, I'm getting this error:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_Loader::$image_lib
Filename: views/test.php
Line Number: 19
...
Fatal error: Call to a member function resize() on a non-object ... on line 19
Here's the view:
<div style="width:300px; border:1px solid #000000; float:left;">
<img src="/images/loadingAnimation.gif">
<br><br>
<?php
$config['image_library'] = 'gd2';
$config['source_image'] = '/images/loadingAnimation.gif';
$config['new_image'] = '/images/loadingAnimation_new.gif';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 50;
$this->load->library('image_lib', $config);
$this->image_lib->resize();
?>
</div>
Line 19 is: $this->image_lib->resize();
The image <img src="/images/loadingAnimation.gif"> displays as it should. The directory has 777 permissions. I have gd2 loaded, per phpinfo().
Any clues? I'm kind of lost here.
Thanks!