Welcome Guest, Not a member yet? Register   Sign In
Problem with image manipulation (resizing)
#4

[eluser]tommizzle[/eluser]
Solved the problem:

There is an error in the documentation on: http://ellislab.com/codeigniter/user-gui...e_lib.html

Quote:$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); should be $this->image_lib->initialize($config);

$this->image_lib->resize();

Pretty frustrating stuff. Especially as I've spent ~2 days on it :/


Messages In This Thread
Problem with image manipulation (resizing) - by El Forum - 11-16-2009, 03:15 AM
Problem with image manipulation (resizing) - by El Forum - 11-16-2009, 04:01 AM
Problem with image manipulation (resizing) - by El Forum - 11-16-2009, 04:08 AM
Problem with image manipulation (resizing) - by El Forum - 11-16-2009, 04:33 AM
Problem with image manipulation (resizing) - by El Forum - 11-16-2009, 04:41 AM
Problem with image manipulation (resizing) - by El Forum - 11-24-2009, 10:40 AM
Problem with image manipulation (resizing) - by El Forum - 02-17-2010, 04:21 AM
Problem with image manipulation (resizing) - by El Forum - 02-17-2010, 04:29 AM
Problem with image manipulation (resizing) - by El Forum - 02-17-2010, 04:32 AM
Problem with image manipulation (resizing) - by El Forum - 02-17-2010, 04:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB