CodeIgniter Forums
I have a problem with GD2 php library... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: I have a problem with GD2 php library... (/showthread.php?tid=11968)



I have a problem with GD2 php library... - El Forum - 09-30-2008

[eluser]miky4e[/eluser]
Hello, I have a big problem with GD Library on my Macintosh System.

I have mac os x leopard 10.5.5, with php 5.2.6 compiled from source, today, with support libjepg and libpng (from diskimage install).

But, I have this problem...

Code:
Your server does not support the GD function required to process this type of image.

But at

Code:
/usr/local/php5/ext/

I found gd/ directory with .h extension files.

Where is the problem?? O_O

I Need GD2 support to develop my web gallery!

Thanks Wink


I have a problem with GD2 php library... - El Forum - 09-30-2008

[eluser]SitesByJoe[/eluser]
Have you run a <?= phpinfo(); ?> to make sure GD2 is installed?


I have a problem with GD2 php library... - El Forum - 09-30-2008

[eluser]miky4e[/eluser]
Yes,

with phpinfo() GD library is enableb by default!


I have a problem with GD2 php library... - El Forum - 09-30-2008

[eluser]SitesByJoe[/eluser]
Can you post the code that causing the error? Could be a syntax problem.


I have a problem with GD2 php library... - El Forum - 10-01-2008

[eluser]miky4e[/eluser]
Yes, the problem is printed even with MAMP PRO server configuration :S

this is a sample code

Code:
$config['image_library'] = 'gd2';
$config['source_image']    $results->path_file;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width']     = 450;
$config['height']    = 450;

$this->load->library('image_lib', $config);

$this->image_lib->resize();

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

where path_file object is http://_string get to db cell Wink


I have a problem with GD2 php library... - El Forum - 11-17-2008

[eluser]Adin[/eluser]
This might help

http://ellislab.com/forums/viewthread/97277/