can someone help me on how to install the GD library to my websever on my local computer

i have apache 1.3.27 and php.4.3.2 and i want to make use of GD library for me to make a thumbnails but i dont know how to install by the wa i am currently using win2k for testing and freebsd for online webserver.

how to install gd library on win2k and linux and where can i download the GD library to be used or it is already on the php

thank you in advance

    Just take a look here. It gives the link to the GDlib's, but also informs you that since PHP 4.3, it comes bundled.

    As far as install, on linux, you just need to compile --with-gd
    On windows, make sure you extension directory is set right, and uncomment the extension=php_gd2.dll line.

      thank you but where can i uncomment this is it in php.ini or under httpd.conf?

        ok i already uncomment the extension=php_gd2.dll

        and even modify extension_dir and assigned to where the file is located

        and restart my apache but still gives me an error like this

        This function does not exist: ImageCreateFromJpeg
        You specified to use GD2, but not all GD2 functions are present. ImageCreateTruecolor()
        You specified to use GD2, but not all GD2 functions are present. ImageCopyResampled()

        what should i do?

          forget about it.. already working i just restart my pc 🙂

            Sounds like the Windows fix to me. Not working? Reboot! 😃

              linux server already finish recompile to add up GD library but somethigns wrong i dont know why there is now jpg support and freestyle

              from my linux server this are added for the GD library
              GD Support - enabled
              GD Version - bundled (2.0.15 compatible)
              GIF Read - Support enabled
              PNG Support - enabled
              WBMP Support - enabled
              XBM Support - enabled

              and from my local server which is on my windows
              GD Support - enabled
              GD Version - bundled (2.0.12 compatible)
              FreeType Support - enabled
              FreeType Linkage - with freetype
              GIF Read Support - enabled
              JPG Support - enabled
              PNG Support - enabled
              WBMP Support - enabled
              XBM Support - enabled

              there is not freetype and jpg support what should i add up pls help me with this

              thank you in advance

                Are freetype and jpeg installed? If so, try recompiling pointing the to directories...

                --with-jpeg-dir=DIR
                --with-ttf=DIR(freetype 1)
                --with-freetype-dir=DIR(freetype 2)

                  Write a Reply...