Welcome Guest, Not a member yet? Register   Sign In
i cant call image_lib in view file?
#1

[eluser]Asinox[/eluser]
hi im tryind to resize images in view file...but i get error....

is correct call the image_lib in view file?



Code:
$config['image_library'] = 'gd2';
$config['source_image'] = base_url().'public/img_articulos/'.$query['imagen'];
$config['create_thumb'] = FALSE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 454;
$config['height'] = 218;

$this->load->image_lib($config);

$imagen = $this->image_lib->resize();




Theme © iAndrew 2016 - Forum software by © MyBB