Welcome Guest, Not a member yet? Register   Sign In
Image lib error

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

$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);

[eluser]Derek Allard[/eluser]
I'm not sure, but do you think it could be this bug?


Check out the fix I posted on the bug report. I think it should fix the problem.

Theme © iAndrew 2016 - Forum software by © MyBB