Welcome Guest, Not a member yet? Register   Sign In
Can't Resize Two Images In Method (Using Image Library)
#3

[eluser]mdvaldosta[/eluser]
That didn't work, but I got it using this:
Code:
// Make thumb configuration
        $config['image_library'] = 'gd2';
        $config['source_image'] = './assets/uploads/' . $filename;
        $config['create_thumb'] = TRUE;
        $config['maintain_ratio'] = TRUE;
        $config['width'] = 200;
        $config['height'] = 150;

        // Make thumb from original image
        $this->load->library('image_lib', $config);
        $this->image_lib->resize();
        
        // Resize original configuration
        $config['image_library'] = 'gd2';
        $config['source_image'] = './assets/uploads/' . $filename;
        $config['create_thumb'] = FALSE;
        $config['maintain_ratio'] = TRUE;
        $config['width'] = 500;
        $config['height'] = 370;

        // Resize the original image
        $this->image_lib->initialize($config);
        $this->image_lib->resize();


Messages In This Thread
Can't Resize Two Images In Method (Using Image Library) - by El Forum - 11-08-2010, 08:42 PM
Can't Resize Two Images In Method (Using Image Library) - by El Forum - 11-09-2010, 06:18 AM
Can't Resize Two Images In Method (Using Image Library) - by El Forum - 11-09-2010, 11:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB