Imagine creating Web-page graphics dynamically using just code. Creating and manipulating images is yours for the doing with the power of PHP. This tutorial steps through using the GD library, showing you how to create and alter images on Web pages. It starts with the GD construct, and then builds on it to showcase graphics techniques.
For some reason, Apple did not include GD in the default Leopard build. Here’s how to compile just the GD extension and add it to PHP without recompiling the whole of PHP and breaking the unique folder layout &c. of the Apple install
uncomment the 32-bit lines, and comment in the 64-bit lines if you’re compiling on a Core !2 Duo / G4
Edited 2008-07-07 19:47 UTC
http://trac.macports.org/browser/trunk/dports/graphics/gd2/Portfile
http://pdb.finkproject.org/pdb/browse.php?summary=GD
Yeesh! Must… resist… urge to… make… snarky comment… about… “The Mac Experience.”
The appropriate reference is:
“So easy to use, no WONDER it’s number 1!”
Hey, it worked for AOL.
’cause your grandma is clearly going to need to install GD, right? 😉
Ah, I wasn’t aware that “good user experience” has grandparent-only eligibility requirements.
This is PHP/Apache. Both open source projects not run by Apple. These are also both not front-facing user options advertised on the box.
Having to run a ridiculously complex script to fix an issue is a staple of most open source projects. Blaming Apple is aiming in the wrong place.
Apple is responsible for the configuration of the versions of PHP/Apache that Apple chose to include in Apple’s OS (note the pattern).
Relevance? Correlation is not cause.
…which says to me that Apple’s commitment to “user experience” is largely perfunctory, since it evidently doesn’t extend to the more advanced / less “sexy” parts of the OS.
so how do i actually view IBM’s tutorial, do i have to sign up for it? am i retarded or something.
Yeah. Do that by clicking the “Register now or sign in using your IBM ID and password.” link.
– This message has been presented by RTARD foundation. (I only kid.)
I’ve been using this for about a year or so now – it’s incredibly useful when you need to do something like display dynamically-generated text using an exotic typeface.
A very useful script that I’ve come across, just in case anyone is looking for something similar:
– Multifunction Image Handler PHP Script
http://www.carmosaic.com/weather/scripts-image-handler.php
I haven’t used more than a fraction of its functionality, but so far it’s been quite handy for doing server-side creation of banner images from templates, and non-destructively watermarking photos.
I would like to suggest to not post items or articles that reference material for which one needs to register in any way.
I find it extremely annyoing having to register for any and every tiny bit of information.