Welcome Guest, Not a member yet? Register   Sign In
how to check width and height of image before resize
#1

[eluser]Tống Kiện Phi[/eluser]
In the example Image Manipulation Class i saw this code:

Code:
$config['image_library'] = 'gd2';
$config['source_image'] = '/path/to/image/mypic.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();

Now, i want to check size image if width more than 150px it's must resize, on the contrary not resize


Messages In This Thread
how to check width and height of image before resize - by El Forum - 09-24-2012, 09:02 AM
how to check width and height of image before resize - by El Forum - 09-24-2012, 09:46 AM
how to check width and height of image before resize - by El Forum - 09-24-2012, 10:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB