Welcome Guest, Not a member yet? Register   Sign In
Double resizing wont work
#2

[eluser]AlexJ[/eluser]
Fixed it, didnt use the clear function because it doesnt seem to work well:

Code:
$this->load->library('image_lib');
                      
                // Resize the original image to the setting
                $config = array();
                $config['image_library'] = 'gd2';
                $config['source_image'] = $image;
                $config['width'] = $presets['large']['width'];
                $config['height'] = $presets['large']['height'];
                $config['maintain_ratio'] = $presets['large']['keep_aspect'];
                
                $this->image_lib->initialize($config);            
              
                $this->image_lib->resize();
                
                $config['create_thumb'] = TRUE;
                $config['width'] = $presets['thumbnail']['width'];
                $config['height'] = $presets['thumbnail']['height'];
                $config['maintain_ratio'] = $presets['thumbnail']['keep_aspect'];
                $config['thumb_marker'] = '_new_thumb';
                
                $this->image_lib->initialize($config);
                
                $this->image_lib->resize();


Messages In This Thread
Double resizing wont work - by El Forum - 04-04-2010, 03:17 AM
Double resizing wont work - by El Forum - 04-04-2010, 06:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB