Welcome Guest, Not a member yet? Register   Sign In
CI's image_lib cropping isn't working properly
#4

[eluser]KeyStroke[/eluser]
Oh crap, lol. I forgot to include that too. Here's the whole function:

Code:
function crop_image()
{
$this->load->library('image_lib');

$image_uri = './resources/images/picture.jpg';

$config['x_aixs'] = $this->input->post('x');
$config['y_axis'] = $this->input->post('y');
$config['source_image'] = $image_uri;
$config['width'] = $this->input->post('w');
$config['height'] = $this->input->post('h');
$config['maintain_ratio'] = TRUE;

$this->image_lib->initialize($config);

if( ! $this->image_lib->crop() )
{
    echo $this->image_lib->display_errors();
}

}


Messages In This Thread
CI's image_lib cropping isn't working properly - by El Forum - 02-10-2009, 01:08 PM
CI's image_lib cropping isn't working properly - by El Forum - 02-10-2009, 09:33 PM
CI's image_lib cropping isn't working properly - by El Forum - 02-11-2009, 03:43 AM
CI's image_lib cropping isn't working properly - by El Forum - 02-11-2009, 03:46 AM
CI's image_lib cropping isn't working properly - by El Forum - 02-11-2009, 04:24 AM
CI's image_lib cropping isn't working properly - by El Forum - 02-11-2009, 04:42 AM
CI's image_lib cropping isn't working properly - by El Forum - 02-11-2009, 05:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB