472,959 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,959 software developers and data experts.

Fatal error: Call to undefined function: imagecreatefromjpeg()


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 choose ImageMagick because I've
heard so much about it.

I then decided to go with the inbuilt GD tools since I'm using PHP 4.3.3
that I compiled with --with-gd. I can use some of the image functions in
PHP so why is this one undefined? What can I do to resolve it? The message
follows, in addition, I include an extract from my phpinfo() to show that I
do have GD Support fully enabled.

Fatal error: Call to undefined function: imagecreatefromjpeg()

An extract from phpinfo(); tells me the following:

GD Support enabled
GD Version bundled (2.0.15 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

What do I need to do to fix the problem?
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?
Jul 16 '05 #1
5 68720

"Randell D." <yo**************************@yahoo.com> wrote in message
news:LX***********************@news2.calgary.shaw. ca...

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 choose ImageMagick because I've
heard so much about it.

I then decided to go with the inbuilt GD tools since I'm using PHP 4.3.3
that I compiled with --with-gd. I can use some of the image functions in
PHP so why is this one undefined? What can I do to resolve it? The message follows, in addition, I include an extract from my phpinfo() to show that I do have GD Support fully enabled.

Fatal error: Call to undefined function: imagecreatefromjpeg()

An extract from phpinfo(); tells me the following:

GD Support enabled
GD Version bundled (2.0.15 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

What do I need to do to fix the problem?
--


Interestingly enough - I found imagecreatefromgif() works thus I'm wondering
if there is a dependancy on an external jpeg library that I do not have
installed.

Can anyone help with a solution?
Jul 16 '05 #2
On Fri, 12 Sep 2003 19:15:55 GMT, "Randell D."
<yo**************************@yahoo.com> wrote:
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 choose ImageMagick because I've
heard so much about it.

I then decided to go with the inbuilt GD tools since I'm using PHP 4.3.3
that I compiled with --with-gd. I can use some of the image functions in
PHP so why is this one undefined? What can I do to resolve it? The message
follows, in addition, I include an extract from my phpinfo() to show that I
do have GD Support fully enabled.

Fatal error: Call to undefined function: imagecreatefromjpeg()

An extract from phpinfo(); tells me the following:

GD Support enabled
GD Version bundled (2.0.15 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

What do I need to do to fix the problem?


--with-jpeg=<path to jpeg libs> may be worth a try, although my version of PHP
wasn't compiled with that and still has jpeg support; configure may have found
the libs by itself though, since they're in /usr/lib.

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 16 '05 #3

"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:e6********************************@4ax.com...
On Fri, 12 Sep 2003 19:15:55 GMT, "Randell D."
<yo**************************@yahoo.com> wrote:
Folks,
I feel like pulling my hair out - I tried unsuccessfully over the past fewdays to install ImagMagick but because of version conflicts and missing
libraries I had to give up. I originally choose ImageMagick because I've
heard so much about it.

I then decided to go with the inbuilt GD tools since I'm using PHP 4.3.3
that I compiled with --with-gd. I can use some of the image functions in
PHP so why is this one undefined? What can I do to resolve it? The messagefollows, in addition, I include an extract from my phpinfo() to show that Ido have GD Support fully enabled.

Fatal error: Call to undefined function: imagecreatefromjpeg()

An extract from phpinfo(); tells me the following:

GD Support enabled
GD Version bundled (2.0.15 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

What do I need to do to fix the problem?
--with-jpeg=<path to jpeg libs> may be worth a try, although my version of

PHP wasn't compiled with that and still has jpeg support; configure may have found the libs by itself though, since they're in /usr/lib.

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)


I've got it recompiling as I write this so I'll post again in an hour or so
and let you know if that was the root of the problem - thought I'd just
drop a byte though and say thanks for the suggestion since its the second
time this week that you've answered one of my posts...
Jul 16 '05 #4

"Randell D." <yo**************************@yahoo.com> wrote in message
news:LX***********************@news2.calgary.shaw. ca...

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 choose ImageMagick because I've
heard so much about it.

I then decided to go with the inbuilt GD tools since I'm using PHP 4.3.3
that I compiled with --with-gd. I can use some of the image functions in
PHP so why is this one undefined? What can I do to resolve it? The message follows, in addition, I include an extract from my phpinfo() to show that I do have GD Support fully enabled.

Fatal error: Call to undefined function: imagecreatefromjpeg()

An extract from phpinfo(); tells me the following:

GD Support enabled
GD Version bundled (2.0.15 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

What do I need to do to fix the problem?
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?


I've called the gd_info() function and notice that jpeg support isn't
recognised

# 10 Elements strlen
GD Version bundled (2.0.15 compatible) 27
FreeType Support 0
T1Lib Support 0
GIF Read Support 1 1
GIF Create Support 0
JPG Support 0
PNG Support 1 1
WBMP Support 1 1
XBM Support 1 1
JIS-mapped Japanese Font Support 0

I *do* have jpeg-6b compiled though and was unsure as to why it hadn't
picked it up.

After three or four different compiles, I changed the order of the
../configure arguements (which probably didn't do anything) however I had
previously --with-jpeg-dir=/usr/lib I've modifed it to have --with-jpeg-dir
without a directory specified and I think that sorted it.

The following are my compile options for those who might suffer the same
problem (note though that my apache has been compiled with a number of extra
modules that you may (not?) need like mysql, suexec, perl...

# cd apache/
# make clean

# cd ../php/
# make clean

# cd ../apache/
#
../configure --prefix=/opt/apache --enable-module=unique_id --enable-module=s
o --enable-suexec --with-perl=/usr/bin/perl --suexec-caller=www --suexec-log
file=/var/log/suexec.log --suexec-uidmin=1025 --suexec-gidmin=1025 --disable
-module=imap --disable-module=asis --disable-module=userdir --disable-module
=autoindex --disable-module=status --enable-module=vhost_alias --activate-mo
dule=src/modules/php4/libphp4.a --activate-module=src/modules/extra/mod_geoi
p.c

# cd ../php/
#
../configure --with-mysql --with-apache=$src/apache --with-mcrypt --with-jpeg
-dir --enable-exif --with-zlib-dir --with-gd --disable-cgi
# make
# make install

# cd ../apache/
#
../configure --prefix=/opt/apache --enable-module=unique_id --enable-module=s
o --enable-suexec --with-perl=/usr/bin/perl --suexec-caller=www --suexec-log
file=/var/log/suexec.log --suexec-uidmin=1025 --suexec-gidmin=1025 --disable
-module=imap --disable-module=asis --disable-module=userdir --disable-module
=autoindex --disable-module=status --enable-module=vhost_alias --activate-mo
dule=src/modules/php4/libphp4.a --activate-module=src/modules/extra/mod_geoi
p.c
# make
# make install
Jul 16 '05 #5
On Fri, 12 Sep 2003 22:22:34 GMT, "Randell D."
<yo**************************@yahoo.com>, wrote:

....

This is what finally worked for me. Not sure whether it was the "make
clean" or adding exif support -- but it worked!

make clean
../configure --with-mysql --with-apxs2 --with-xpm-dir --with-png
--with-png-dir --with-jpeg-dir --enable-exif --with-zlib-dir --with-gd configure.2003.09.12.dh5.log

make
make install
libtool --finish /etc/rpms/php-4.3.1/libs
apachectl -k stop
service httpd start
------------------------------------------------
Dan Hansen
------------------------------------------------
Jul 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Daniel Hansen | last post by:
I am getting a "Fatal error: Call to undefined function: imagecreatefromjpeg() in..." error in one of my scripts, and after doing a bit of searching on the 'net I found various messages relating to...
4
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...
8
by: Tim Tyler | last post by:
I'm getting fatal errors when executing code - and my error handler is failing to trap them - so I get no stack backtrace :-( The error I am getting is: "Fatal error: Call to a member function...
1
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...
2
by: salvadorvp | last post by:
Hi, I have the following code that gives me this odd error message at a line of code inside the PEAR libraries: "Fatal error: Call to undefined function: MDB2_Driver_mssql::getMessage(). in...
9
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 ...
3
by: Ming | last post by:
I am new to php5 programming :) I redirect users to another server to login. After they login successfully, they will be redirected to test.php. The server provides xml_rpc interface so I can...
4
by: nickyspace | last post by:
HI all I have a little issue with this php code. Below is the code CODE: PHP 1.<?
1
by: RYKLOU | last post by:
I am kinda new to php, but i do know what i am doing kinda, but i came across this error when i am trying to upload a file to my website. Fatal error: Allowed memory size of 8388608 bytes...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.