imagecreatefromjpeg()?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
embassy50
Forum Newbie
Posts: 1
Joined: Thu Jun 13, 2002 12:44 pm
Location: nashville tn

imagecreatefromjpeg()?

Post by embassy50 »

php 4.2.0 isn't recognizing this function imagecreatefromjpeg();

is there a work around? or is it a setting i have not configured properly?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

make sure the gd-module has been loaded, imagecreatefromjpeg is exposed by gd-lib-mod. try

Code: Select all

<?php phpinfo(); ?>
there should be something like
gd
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled
or run this little script

Code: Select all

<?php
if (in_array('gd', get_loaded_extensions()))
&#123;
	print('gd-module loaded<br>');
	if (in_array('imagecreatefromjpeg', get_extension_funcs('gd')))
		print('imagecreatefromjpeg defined');
	else
		print('imagecreatefromjpeg NOT defined');
&#125;
else
	print('gd-module NOT loaded<br>');
?>
Post Reply