470,833 Members | 1,502 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

GD Problem - Call to undefined function imagejpeg()

I tried to create some images with php and gd and get always

Call to undefined function imagejpeg()
or
Call to undefined function imagepng()

PHP was build with --with-gd --with-zlib but I assume I will need more?

phpinfo() says:
gd
GD Support enabled
GD Version bundled (2.0.23 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Thanks, Jan
Jul 17 '05 #1
4 20500
You'll need to compile in the jpeg/png library before you'll be able to
do anything with them... here's a link to the source:

http://www.ijg.org/files/jpegsrc.v6b.tar.gz

For any kind of file you want to work with, you'll most likely need a
library... here's the PNG one too:

http://libpng.org/pub/png/libpng.html

HTH

xcomm wrote:
I tried to create some images with php and gd and get always

Call to undefined function imagejpeg()
or
Call to undefined function imagepng()

PHP was build with --with-gd --with-zlib but I assume I will need more?

phpinfo() says:
gd
GD Support enabled
GD Version bundled (2.0.23 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Thanks, Jan

Jul 17 '05 #2
try running `./configure --help` in the GD srouce dir to see what
configure options you have...

xcomm wrote:
I tried to create some images with php and gd and get always

Call to undefined function imagejpeg()
or
Call to undefined function imagepng()

PHP was build with --with-gd --with-zlib but I assume I will need more?

phpinfo() says:
gd
GD Support enabled
GD Version bundled (2.0.23 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Thanks, Jan

Jul 17 '05 #3
Hi Aidan,

Thanks for helping me with this. I tried it under phpsource/ext/gd but
had no configure there. I did download gd with the php snap not extra.

Playing a little arround I used imagecreatetrucolor() instead of
imagecreate() and it works smooth this way.

Thanks, Jan

Aidan <no**********@linknet.com.au> wrote in message news:<ne********************@titan.linknet.com.au> ...
try running `./configure --help` in the GD srouce dir to see what
configure options you have...

xcomm wrote:
I tried to create some images with php and gd and get always

Call to undefined function imagejpeg()
or
Call to undefined function imagepng()

PHP was build with --with-gd --with-zlib but I assume I will need more?

phpinfo() says:
gd
GD Support enabled
GD Version bundled (2.0.23 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Thanks, Jan

Jul 17 '05 #4
Acctually, what I meant was to run `./configure --help` in the gdlib
directory...

See, first you need to compile the GD library with JPG support, then you
compile PHP and link it to the GDlib you've created, thus PHP will make use
of the GD library with jpg support.

HTH

"xcomm" <go****@xcommunycationz.com> wrote in message
news:7d**************************@posting.google.c om...
Hi Aidan,

Thanks for helping me with this. I tried it under phpsource/ext/gd but
had no configure there. I did download gd with the php snap not extra.

Playing a little arround I used imagecreatetrucolor() instead of
imagecreate() and it works smooth this way.

Thanks, Jan

Aidan <no**********@linknet.com.au> wrote in message

news:<ne********************@titan.linknet.com.au> ...
try running `./configure --help` in the GD srouce dir to see what
configure options you have...

xcomm wrote:
I tried to create some images with php and gd and get always

Call to undefined function imagejpeg()
or
Call to undefined function imagepng()

PHP was build with --with-gd --with-zlib but I assume I will need more?
phpinfo() says:
gd
GD Support enabled
GD Version bundled (2.0.23 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Thanks, Jan

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by obi wan kenobi | last post: by
4 posts views Thread by gc | last post: by
1 post views Thread by annie | last post: by
1 post views Thread by franscescomoi | last post: by
1 post views Thread by muelli75 | last post: by
1 post views Thread by drewmania001 | last post: by
8 posts views Thread by Cruella DeVille | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.