473,498 Members | 1,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 21601
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
68800
by: Randell D. | last post by:
Folks, I feel like pulling my hair out - I tried unsuccessfully over the past few days to install ImagMagick but because of version conflicts and missing libraries I had to give up. I originally...
6
2395
by: obi wan kenobi | last post by:
i've used the Amazon PHP api for several months now to pull amazon data into my affiliate site - but recently i'm starting to get "call to undefined function" errors " Fatal error: Call to...
4
15327
by: gc | last post by:
I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of Apache, PHP and...
1
9981
by: annie | last post by:
Can anyone point me in the right direction here? I've got this little image script <?php $im = ImageCreate(200,200); $white = ImageColorAllocate($im,oxFF,oxFF,oxFF); $black =...
1
10467
by: franscescomoi | last post by:
Hi. On PHP 4.3.10 on Linux I try to: ------ $im = imagecreate(400, 30); $black = imagecolorallocate($im, 0, 0, 0); imagettftext($image, 20, -3, 10, 20, $black, 'Arial.ttf', 'Test'); ------- ...
1
9077
by: muelli75 | last post by:
Hi! Im getting insane by solving a problem .... I try to define a function which uses a code-snippet from another file. My base are the codes from the great book "WebDataBase-Book by H....
1
18037
by: drewmania001 | last post by:
i've read various info on the web including the following http://php.mirrors.ilisys.com.au/manual/en/ref.mysqli.php mySQL Version 4.1.16 PHP Version 5.1.2 with Zend Engine v2.1.0 OS Windows...
8
4185
by: Cruella DeVille | last post by:
I'm writing a class to handle reading/writing from/to files like this (shortened) lass FileIO{ private $filename; private $mode; private $filePointer; private $dictionary; public function...
9
5239
by: java | last post by:
Hey there, I just removed an elderly PHP4-Installation from my Windows-Box and installed PHP 5.2.1. I used the PHP4-Module as local batchfile- interpreter by E:\ersDHCP>php ./extractLog.php ...
0
7126
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6891
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5465
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4916
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
659
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.