[eluser]emperius[/eluser]
In the settings i have
$config['maintain_ratio'] = TRUE;
however on resize just width changes. How to change the height in proportion to width
the code follows
Code:
$imgpath = realpath("public/logo/".$resarr['file_name']);
$config['image_library'] = 'GD2';
$config['source_image'] = $imgpath;
$config['maintain_ratio'] = TRUE;
$config['width'] = 200;
$this->load->library('image_lib', $config);
$this->image_lib->resize();