Re: GD, ImageCreate(), ImageCreateFromJPEG()

From: Date: Thu, 08 Jun 2000 01:27:05 +0000
Subject: Re: GD, ImageCreate(), ImageCreateFromJPEG()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1260@lists.php.net to get a copy of this message
On 7 Jun, Joe Koenig wrote: > I'm new to all of the GD stuff and am unable to get > ImageCreateFromJPEG() to work. if I do a phpinfo() it says gd: Version > 1.6 or later, FreeType Support. Here's a snippet of my code: > > $image_name = "pics/database/articles/1.jpg"; > $src = ImageCreateFromJpeg($image_name); > > If I call it like this, I get a "Call to unsupported function..." error > - if I do it with the pathname in my function call I get a parse error. > Any help would be appreciated. Thanks, > > Joe You also need jpeg libraries to be able to do this; they may not have been available when you compiled. Try reconfiguring and recompiling PHP and put in your configuration --with-jpeg-dir=/path/to/libjpeg Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#1260) next »