PHP and IMAGE editing.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

PHP and IMAGE editing.

Post by Gen-ik »

I've just downloaded all of the GD stuff that I need to be able to create and edit images using PHP.
Unfortunatly there doesn't seem to be any documents anywhere telling me how to 'compile' it into PHP in order for me to use it.

Can someone tell me how to do this or point me towards somewhere that can tell me. I will also need how to re-compile the GD stuff as well because I'm planning to add some futher stuff to it.

This is the first time I've done this sort of thing so I'm a bit lost :cry:

Thank you.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

take a look at <?php phpinfo(); ?> and make sure there is no loadable module for gdlib.

If you really have to recompile php:
is it linux or windows?

linux: gd-documentation is here: http://www.boutell.com/gd/manual1.8.4.html
after you built it you use ./configure on php with --with-gd=<directory where you installed gd - should be in the Makefile> and refer to http://www.php.net/manual/en/install.linux.php

win32: take a look here: http://www.php.net/manual/en/install.windows.php#install.windows.build. There is a workspace called php_modules, gd-lib+module-code is in there
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

Right let's see...

Ahhh! So much PHP info on screen!

Ok, this is the only GD stuff I can see..


GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled


..does that mean GD is already setup and ready to go?

It's PHP version 4.2.2 on Apache 1.3.20 if that makes any difference!
Post Reply