[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP4.0.4pl1 + GD-Support (with ImageCreate for JPEG, PNG and GIF)



hi!

ok, I compiled PHP and now png is working... only jpeg isn't. Here is my
install-log:

- install zlib
- LIBPNG: change in makefile: zlib-path (ZLIBLIB=/usr/local/lib -
ZLIBINC=/usr/local/include)
               make
               make install
- JPEG: ./configure --prefix=/usr/local --exec-prefix=/usr --enable-shared
               make
               make install
- GD: add in makefile: -ljpeg as lib
               make
               make install
- PHP:
./configure --with-mysql --with-apxs --enable-track-vars --with-gd=/usr/loca
l/gd-1.8.4 --with-jpeg
               make
               make install

No errors, but CreateImage for jpeg is stil not working. Any ideas??

Greetings,

Patrick

At 15:16 11/04/01, you wrote:
>hi @ all!
>
>I would like to compile gd into my PHP4, so that the funktion imagecreate
>works for jepg, png and gif.
>Can somebody help me? Or is there even a faq for it? I didn't found
anythink

Okay, you will need to download and install the following packages:

jpeg-6b - www.ijg.org
libpng - www.libpng.org/pub/png/libpng.html

and then

gd - www.boutell.com/gd

GD has not had GIF support for a while, but don't worry because PNG is
better in many respects.

You will then need to re-configure PHP

./configure --with-gd=<path to gd directories>

As long as you carefully read the readme's in each archive, you will have
no problems.

- Glen


   Design Solution Limited
   t: +44 (0)1502 513008
   f: +44 (0)1502 588622
   e: info@xxxxxxxxxxxxxxxxxxxx
   w: http://www.designsolution.co.uk
   Nouvotech House, Harbour Road,
   Oulton Broad, Suffolk, NR32 3LZ, UK
-----------------------------------------------------
Graphic Design - Web development - Hosting
-----------------------------------------------------