Welcome Guest, Not a member yet? Register   Sign In
I have a problem with GD2 php library...
#1

[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
#2

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

[eluser]miky4e[/eluser]
Yes,

with phpinfo() GD library is enableb by default!
#4

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

[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
#6

[eluser]Adin[/eluser]
This might help

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




Theme © iAndrew 2016 - Forum software by © MyBB