Hi
Just wondering how you go about setting resize by height.
to resize by width i know its:
[syntax=php]$upload->save_image_resized('../folder/' . $upload->name, 800);[/syntax]
how do you go about resizing by height.
For instance the width doesnt matter on website, but the hight should not exceed 400px.
setting resize by height - upload class
Re: setting resize by height - upload class
You can specify 0 for either dimension to have it calculated based on the other one. So to do what you are trying to you would want to use
[syntax=php] $upload->save_image_resized('../folder/' . $upload->name, 0, 800);[/syntax]
[syntax=php] $upload->save_image_resized('../folder/' . $upload->name, 0, 800);[/syntax]