Re: JPEG and TTF support

From: Date: Tue, 07 Nov 2000 18:40:18 +0000
Subject: Re: JPEG and TTF support
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24140@lists.php.net to get a copy of this message
Are you sure your GD library is compiled with JPEG support enabled? I would remove all traces of GD from your system and make sure you have the libjpeg.a library on your system. And that doesn't simply mean that you need to install the libjpeg-6b package. You also need libjpeg-devel. I also suggest installing libpng, libpng-devel, freetype and freetype-devel. Then do this: Grab this file: http://www.rime.com.au/gd/src/gd-1.8.3gif.tar.gz Uncompres it and go edit the Makefile in the gd-1.8.3 directory. Make sure you have these two lines: CFLAGS=-O2 -DHAVE_JPEG LIBS=-lm -lgd -ljpeg -lpng -lz Don't enable TTF support in this Makefile. Now compile it: make In your PHP directory use: ./configure --with-gd=/home/foo/gd-1.8.3 --with-jpeg-dir=/usr --with-ttf ... plus whatever other options you use This should provide you with a PHP/GD setup that supports GIF, JPEG, PNG, and TTF. -Rasmus On Tue, 7 Nov 2000, Jean-Arthur Silve wrote: > Hello. > > I have installed PHP4.0.3pl1 with jpeg and ttf support > > I configured PHP as is: > > ./configure --with-apxs=/usr/local/apacheSSL/bin/apxs --enable-ftp > --with-gd --with-jpeg-dir --with-pgsql --enable-sockets --with-zlib > --with-xpm-dir --with-ttf' --with-versioning > > then I compile and install. > > All is perfect except when !I try to use ImageTTFText or ImageJpeg > PHP tell me that it don't support TTF and jpeg... > > I have freetype-1.3-4, libjpeg-6b , gd-1.8.1 zlib-1.1.3-9 installed... > > Is someone has an idea ?? > > thank you. > > jean-arthur > > ---------------------------------------------------------------- > Le simple fait de passer par la fenetre ne suffit pas a la transformer en porte. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#24140) next »