Image Resize |
how to resize the picture ?
350x200 PHP Code: public function insert_news()
Maybe use this code,
if you any problem read this link bro https://stackoverflow.com/questions/1921...age-resize On view use this: foreach($results as $row) { $config['image_library'] = 'gd2'; $config['source_image'] = '/img/proizvodi/'.$row->proizvodid.'.jpg'; $config['create_thumb'] = TRUE; $config['maintain_ratio'] = TRUE; $config['width'] = 75; $config['height'] = 50; $this->load->library('image_lib', $config); $this->image_lib->resize(); } (11-02-2017, 08:16 PM)bgr06 Wrote: how to resize the picture ? check this if problem occured : https://stackoverflow.com/questions/4326...oblem?rq=1 |
Welcome Guest, Not a member yet? Register Sign In |