Women in Technology

Hear us Roar

  PHP 4.3 and Mac OS X
Subject:   GD with GIF? Ming?
Date:   2003-01-17 08:19:19
From:   trachtenberga
Response to: GD with GIF? Ming?

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.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • 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,

  • 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: