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

[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();
#2

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

[eluser]mjijackson[/eluser]
Derek-

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




Theme © iAndrew 2016 - Forum software by © MyBB