CodeIgniter Forums
Help with thumbnail generation - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Help with thumbnail generation (/thread-2070.html)

Help with thumbnail generation - El Forum - 07-14-2007

I can't seem to get the image_lib library to generate a thumbnail. The following code generates an error message:
function test()
        // Create thumbnail            
        $config['image_library'] = 'GD';
        $config['source_image'] = './public/images/avatars/brigham.jpg';
        $config['create_thumb'] = TRUE;
        $config['maintain_ratio'] = TRUE;
        $config['width'] = 50;
        $config['height'] = 50;
        $this->load->library('image_lib', $config);
...and the error message is
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_Image_lib::$dest_image
Filename: libraries/Image_lib.php
Line Number: 476
What am I doing wrong? I've tried specifying 'dest_image' and 'new_image' in the config file, but the same error appears.

Help with thumbnail generation - El Forum - 01-08-2013

$image = new Image();