On Thursday 27 March 2003 10:51 pm, you wrote:
> Do you have libjpeg installed?  You might need to add --with-jpeg-dir=/usr
> assuming your libjpeg is in /usr/lib, for example.
>
> -Rasmus

I see. 

$ >  locate libjpeg
/usr/lib/libjpeg.so.62
/usr/lib/libjpeg.so.62.0.0
...

So I will try to re-compile then. Thanks a lot.

RDB


> On Thu, 27 Mar 2003, Reuben D. Budiardja wrote:
> > On Thursday 27 March 2003 10:42 pm, Rasmus Lerdorf wrote:
> > > Well, check the error.  Get rid of the header() call and just look at
> > > the output.
> >
> > uh.. didn't know I can do that, anyway, it gives:
> >
> > Fatal error: Call to undefined function: imagejpeg() in
> > /usr/local/apache/htdocs/astr162/wedgeplot.php on line 131
> >
> > So, this brings back the question if the jpeg support is there withe
> > bundled gd library, or do I need some special option with the configure?
> > Here is my configure line (from phpinfo()):
> >
> > './configure' '--with-ldap' '--enable-track-vars' '--with-pgsql'
> > '--with-mysql' '--disable-debug' '--prefix=/usr/local/apache/php'
> > '--with-config-file-path=/usr/local/apache/lib'
> > '--with-apxs=/usr/local/apache/bin/apxs' '--with-gd' '--with-zlib'
> >
> > Thanks.
> >
> > RDB
> >
> > > On Thu, 27 Mar 2003, Reuben D. Budiardja wrote:
> > > > Hello,
> > > > I have a script that creates image using the gd library that is
> > > > bundled with the latest php-4.0.3 on Redhat Linux / Apache as apache
> > > > mod. Everything works fine when I use png:
> > > >
> > > > header("Content-type: image/png");
> > > > $im = imagecreate(500,500);
> > > > ...[script]...
> > > > imagepng($im)
> > > >
> > > > Then when I try to display it as jpeg by changing the header and the
> > > > last line as follows:
> > > >
> > > > header("Content-type: image/jpeg");
> > > > $im = imagecreate(500,500);
> > > > ...[script]...
> > > > imagejpeg($im)
> > > >
> > > > It gives:
> > > >
> > > > The image "http://localhost/astr162/wedgeplot.php"; cannot be
> > > > displayed, because it contains errors.
> > > >
> > > > The question is, is the GD lib that is bundled with php has JPEG
> > > > support ? If yes, what might cause this error?
> > > >
> > > > Thanks a lot. Any help is appreciated.
> > > > RDB



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to