Welcome Guest, Not a member yet? Register   Sign In
Image Manipulation Library Question
#3

[eluser]Cristian Gilè[/eluser]
Code:
$config = array();

//first resize
$config['source_image'] = $image_data['full_path'];
$config['new_image'] = './uploads/thumbs/';
$config['maintain_ratio'] = TRUE;
$config['height'] = 143;
$config['width'] = 100;
            
$this->load->library('image_lib', $config);
$this->image_lib->resize();

//second resize
$config['new_image'] = './uploads/large/'; //change this path according to your needs
$config['height'] = 500; // change according to your needs
$config['width'] = 400;  // change according to your needs
            
$this->image_lib->initialize($config);

$this->image_lib->resize();


Cristian Gilè


Messages In This Thread
Image Manipulation Library Question - by El Forum - 02-08-2011, 03:28 PM
Image Manipulation Library Question - by El Forum - 02-09-2011, 02:54 AM
Image Manipulation Library Question - by El Forum - 02-09-2011, 06:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB