Gd and imagefilter()

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have some problem with imagefilter function. I need to use this and i
get that error:
<b>Fatal error</b>:  Call to undefined function imagefilter() in

Ok, i understand that there is no that funciton but, i have all things
( i hope ) which are expected to install before use it.
more, I have no any problems with other gd functions except imagerotate
( the same error ) ...
I suppose that I need to compile source code of gd manually with that
function, or there is some other soultion ...

PHP Version 5.0.5-3

EXIF Support    enabled
EXIF Version    1.4 $Id: exif.c,v 2005/08/05 14:00:47
Exp $
Supported EXIF Version  0220
Supported filetypes     JPEG,TIFF

GD Support      enabled
GD Version      2.0 or higher
FreeType Support        enabled
FreeType Linkage        with freetype
FreeType Version        2.1.10
T1Lib Support   enabled
GIF Read Support        enabled
GIF Create Support      enabled
JPG Support     enabled
PNG Support     enabled
WBMP Support    enabled

ZLib Support    enabled
Compiled Version        1.2.2
Linked Version  1.2.3

Directive       Local Value     Master Value
zlib.output_compression Off     Off
zlib.output_compression_level   -1      -1
zlib.output_handler     no value        no value

Re: Gd and imagefilter()

Quoted text here. Click to load it
"Note: This function is only available if PHP is compiled with the bundled
version of the GD library."

 My compile of PHP shows for GD version:

GD Support     enabled
GD Version     bundled (2.0.28 compatible)"

 Yours doesn't say "bundled" so presumably you have linked with a separate
instance of the GD library.

Andy Hassall :: :: :: disk and FTP usage analysis tool

Re: Gd and imagefilter()

Yep thanks, i think is the same problem ...

but ...

i compile again php with gd ... and there is still written 2.0 or
higher, so now is the problem how to install bundle version of gd ... i
thought it's bind with php if it's 4.2.x.x or higher, and i need simply
compile it --with-gd but huh, no idea ....

Re: Gd and imagefilter()

Python wrote:
Quoted text here. Click to load it
gd needs a whole whack of supporting libraries

[from my build on Linux Fedora Core 4]

     --with-gd=/opt/gd \
     --with-freetype-dir=/opt/freetype \
     --with-zlib-dir=/usr/lib \
     --with-png-dir=/usr/lib \
     --with-jpeg-dir=/usr/lib \
     --with-tiff-dir=/usr/lib \

You also need to make sure to load the microsoft truetype fonts.

I'm going to be rebuilding a LAMP system with GD from scratch today (to  
fully document the build process for a product) and will post more  
details if you are still stuck.


Site Timeline