Welcome Guest, Not a member yet? Register   Sign In
access to a function in gdlib
#4

[eluser]hht1230[/eluser]
Not sure if this is correct usage, but the image manipulation lib seemed to work fine for this:

in controller:
$config['image_library'] = 'gd2';
$this->load->library('image_lib', $config);

in view:
$im = $this->image_lib->image_create_gd($photopath . $pic['picfile'], 2);

// now width is available via imagesx($im)


Messages In This Thread
access to a function in gdlib - by El Forum - 06-04-2009, 08:45 AM
access to a function in gdlib - by El Forum - 06-04-2009, 09:01 AM
access to a function in gdlib - by El Forum - 06-04-2009, 10:54 AM
access to a function in gdlib - by El Forum - 06-04-2009, 03:39 PM
access to a function in gdlib - by El Forum - 06-05-2009, 10:39 AM
access to a function in gdlib - by El Forum - 06-05-2009, 12:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB