GD missing features

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
ltkenbo
Forum Newbie
Posts: 3
Joined: Sun Feb 17, 2008 12:13 am

GD missing features

Post by ltkenbo »

I recently installed, apache and mysql and php with GD for a forum I am running (linux ubuntu machine). I was having problems with photo uploads on my forum and I think it is because something is wrong with GD. When I create a php info file under the gd section I only see:

GD Support enabled
GD Version 2.0 or higher
GIF Read Support enabled
GIF Create Support enabled
WBMP Support enabled

Its' missing like a bunch of stuff like JPEG support and other stuff....

How do I fix this?
ltkenbo
Forum Newbie
Posts: 3
Joined: Sun Feb 17, 2008 12:13 am

Re: GD missing features

Post by ltkenbo »

Anyone?
User avatar
dbevfat
Forum Contributor
Posts: 126
Joined: Tue Jun 28, 2005 2:47 pm
Location: Ljubljana, Slovenia

Re: GD missing features

Post by dbevfat »

How did you install GD? A friend of mine just tried this on a 7.10 gutsy with PHP 5.2.3-1ubuntu6.3 and had to do a "sudo apt-get install php5-gd" to get the GD working. By doing that, he got it fully working.

regards
ltkenbo
Forum Newbie
Posts: 3
Joined: Sun Feb 17, 2008 12:13 am

Re: GD missing features

Post by ltkenbo »

I installed it manually so I could get it in the right folders. And I'm running php 4
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: GD missing features

Post by onion2k »

If you compiled it from the source you need to recompile it with the bits you want.

If you installed it from the binary then the extensions should all be there...

And you really should look into upgrading to PHP5. PHP4 is no longer supported officially so there won't be any security patches. Plus I believe a lot of the newer GD2 features are only accessible from PHP5 (though I've never actually checked).
User avatar
dbevfat
Forum Contributor
Posts: 126
Joined: Tue Jun 28, 2005 2:47 pm
Location: Ljubljana, Slovenia

Re: GD missing features

Post by dbevfat »

onion2k wrote:PHP4 is no longer supported officially so there won't be any security patches.
Just nitpicking, but as stated at http://www.php.net/archive/2007.php#2007-07-13-1, security patches are the only updates that can still make it into PHP 4.
Post Reply