Connecting Tech Pros Worldwide Forums | Help | Site Map

Help with createimagefromjpeg not working

Dynamo
Guest
 
Posts: n/a
#1: Jul 17 '05
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







Dejan Kozina
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Help with createimagefromjpeg not working




Dynamo wrote:[color=blue]
>
> Fatal error: Call to undefined function: imagecreatefromjpeg() in
> \\mydomain\resizeimage.php on line 10[/color]

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

Erwin Moller
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Help with createimagefromjpeg not working


Dynamo wrote:
[color=blue]
> 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[/color]

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
Closed Thread


Similar PHP bytes