[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è