Page 1 of 1

imagecreatefromjpeg()?

Posted: Thu Jun 13, 2002 12:44 pm
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?

Posted: Thu Jun 13, 2002 3:44 pm
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>');
?>