Article:
  PHP 4.3 and Mac OS X
Subject:   GD with GIF? Ming?
Date:   2003-01-16 22:26:46
From:   dogzilla
While I understand that the developer of GD removed GIF support for (what to him is) a good reason, there are many of us who still rely on GIFs for much of our work, especially given the lackluster adoption of the PNG standard by most browser developers. I'd be really interested in finding a way to roll GIF support back in to the new GD code in PHP under OSX (I've already found a way to do it under my main FreeBSD servers).


Additionally, I have wanted to build and install the Ming Flash creation library into PHP. I'm aware of the FreeMovie alternative and, while it shows promise, it's not as rich as Ming yet. If anyone has successfully done this, I'd love a HOW-TO.

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • GD with GIF? Ming?
    2003-02-28 21:30:27  tychay [View]

    Re: HOW TO Install Ming Extension into PHP 4.3 on Mac OS X 10.2

    1) In Fink Commander install "ming" and "ming-shlibs" packages

    2) Add the following line to your ./configure in the instructions that Adam gave:
    --with-ming=/sw

    3) Test it out by using a script at
    http://ming.sourceforge.net/examples/index.html

    4) Congratulations, You saved the universe from the evil clutches of Flash. :-)

    Take care,

    terry chay
    tychay at php dot net
  • Adam Trachtenberg photo GD with GIF? Ming?
    2003-01-17 08:19:19  Adam Trachtenberg | O'Reilly Author [View]

    PHP has started to bundle GD 2.x with its main distribution. They're also enabling GIF read-only support. I haven't gotten it to work on MacOS X, however, or I'd have included instructions in the article. I'll keep on trying.


    If you want GIF-write support, then that'll be much harder. (IMHO.) GD 1.2 (or whatever version it is) died long before MacOS X, so hacking that thing up will be a major PITA.

    • GD with GIF? Ming?
      2003-02-28 18:35:17  tychay [View]

      The problem (I found) with the built in bundled gd library working in MacOS X is related not having access to the libpng (etc) library. For instance, if you have Fink and have NOT installed gd, this works fine...

      --with-gd --with-jpeg-dir=/sw --with-png-dir=/sw --with-freetype-dir=/sw --with-t1lib=/sw

      assuming you've installed the libjpeg, libpng, libfreetype and libt1lib.

      As for GIF write support, other than patching GD, you can also try using imagemagick extension which is part of the PEAR/PECL library
      curl --remote-name http://pear.php.net/get/imagick-0.9.5.tgz
      unpack and install in your php/ext
      run ./buildconf before ./configure

      NOTE: AFAIK, you cannnot follow the regular build instructions for building ImageMagick as a shared extension because PHP4 on Mac OS X does not support dynamic loading of extensions (a real shame). PHP 5 does do this, however. :-)

      Also, you need to compile imagemagick, and thus --with-imagick=/sw ;-)

      Take care,

      terry
    • GD with GIF? Ming?
      2003-01-20 19:46:01  dogzilla [View]

      You're right that it's a PITA - I've been trying for over a year now. Here's one resource that makes me keep trying:

      http://www.rhyme.com.au/gd/