• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with image manipulation (resizing)

#5
[eluser]hugle[/eluser]
[quote author="tommizzle" date="1258389238"]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 :/[/quote]


bah... so bad Sad
sometimes it's good to leave of the pc for 20 minutes, and come back and start from the beginning, but not searching for errors...
sometimes happen!Smile))


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.