Web Hosting Talk







View Full Version : GD a part of PHP?


fog
10-14-2004, 02:41 AM
I had a nice little script for keeping some images, and it'd generate thumbnails of new ones.

Today I rebuilt Apache. I went with the 'default' build (in EasyApache on cPanel), except I threw in Exif, because a customer wanted it.

I don't get thumbnails, however, I also don't get a button to click asking if I want thumbnails. Because it's a fairly new thing, I'm really not that certain whether this is related to my recompilation of Apache/PHP today or not. I don't know if we had GD support previously or not.

The script calls imageconvertruecolor(), which is a part of GD. However, I'm for some reason under the impression this is now a standard part of PHP, ie, I don't have to specially select it. Is this the case, or is GD still something separate that I'll have to rebuild yet Apache for?

Veghost
10-14-2004, 03:48 AM
By default GD is not build into PHP so you should check it when building apache.

inimino
10-14-2004, 11:39 AM
GD is included in the PHP 5 distribution. You still have to configure it when you compile, you just don't have to install it separately anymore.

activeshutter
10-14-2004, 01:25 PM
that is good to hear, I always had trouble setting that up :)