473,405 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Help with createimagefromjpeg not working

Hi yet again,

I am trying to resize a previously uploaded image on my server to a thumbnail
but am getting a fatal error message as follows

Fatal error: Call to undefined function: imagecreatefromjpeg() in
\\mydomain\resizeimage.php on line 10

This would imply that the function is not available from mywebhosts and yet
according to the php manual it has been available since ver 3 of php.

Note that php is installed on my webhosts server and not my local PC.

As always any help appreciated.

Regards
Dynamo


Jul 17 '05 #1
2 2671


Dynamo wrote:

Fatal error: Call to undefined function: imagecreatefromjpeg() in
\\mydomain\resizeimage.php on line 10


Image functions require the GD extension enabled.
You can check what's enabled writing a file (name it like phpinfo.php) with:
<?php
phpinfo();
?>
and calling it (http://yourdomain.com/phpinfo.php) with a browser.
It sholud display a lot of info, including what extensions are
available. If there is not a 'gd' item, you're out of luck (unless you
talk your host into installing the thing).

djn

Jul 17 '05 #2
Dynamo wrote:
Hi yet again,

I am trying to resize a previously uploaded image on my server to a
thumbnail but am getting a fatal error message as follows

Fatal error: Call to undefined function: imagecreatefromjpeg() in
\\mydomain\resizeimage.php on line 10

This would imply that the function is not available from mywebhosts and
yet according to the php manual it has been available since ver 3 of php.

Note that php is installed on my webhosts server and not my local PC.

As always any help appreciated.

Regards
Dynamo


I think the GD-libs are needed too to use imagefunctions.
(On Linux at least.)
use php_info() to be sure.
It should be listed somewhere.

When in doubt, just contact your serviceprovider. They should know.

Regards,
Erwin Moller
Jul 17 '05 #3

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

Similar topics

7
by: Darren Gamble | last post by:
Good day, I've sent a message on this to the php-general list already, but unfortunately no one replied. Sorry for the repost. to those that read both... I'm having a problem working with an...
0
by: john | last post by:
Hi,All MS Tech Gurus: I need your help!!! It is the second time I post this message, I need get some feedback ASAP, Please Help!! Thanks a lot in advance. John I have a csharp method, using...
16
by: Allen | last post by:
I have a class that returns an arraylist. How do I fill a list box from what is returned? It returns customers which is a arraylist but I cant seem to get the stuff to fill a list box. I just...
5
by: Patrick.O.Ige | last post by:
I have an xml and i'm trying to loop each node... When i do FOR EACH i seem not to get my desired result I want to loop through and get only the values that matches the question i specified with...
11
by: abico | last post by:
Write a program that reads in a sequence of words and prints them in reverse order.Using STACK.
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
11
by: Nathan Moschkin | last post by:
I've tried uploading a couple of jpegs to my test application, thinking that it was some how a header problem, and since I know these jpegs were created with different programs, I figured I could...
16
by: timber910 | last post by:
Hello All, I've been searching for over a week and have found a good start but can't seem to make what I want work. I either get an error or a blank table. What I'm looking for. I have to make a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.