[eluser]alanees[/eluser]
Hello all
I try use next code fro image resize :
in controller page :
Code:
function index()
{
$path = 'uploads/myimage.jpg';
$config['image_library'] = 'gd2';
$config['source_image'] = $path;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 300;
$config['height'] = 160;
$this->load->library('image_lib', $config);
$this->image_lib->resize();
$data['css'] = $this->css;
$this->load->view('index',$data);
}
but i need know what i must to write into view page for image show with new width & height