mariovaldez.net
http://www.mariovaldez.net/webapps/forums/

Call to undefined function: imagecreatefrompng()
http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=10&t=126
Page 1 of 1

Author:  nver [ 16 Sep 2004, 03:27 ]
Post subject:  Call to undefined function: imagecreatefrompng()

hi,
thanks for your script - it's really cool.... :-)

unfortunately, if i set these options to 'true':

$ps_cfg_createzoom = true;
$ps_cfg_createbigmap = true;
$ps_cfg_creategauss = true;

i receive this error:
Fatal error: Call to undefined function: imagecreatefrompng() in /var/www/nver.net/seti/seti_lib.inc.php on line 335

i'm not very familiar with php, but i think it's configured is ok.... :

PHP Version 4.3.8-5

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

System is Linux/Debian - Sid, Apache/1.3.31

i'm sure the problem is on my machine....but maybe you've some hint for me....

thanks,
robert

Author:  mvaldez [ 20 Sep 2004, 01:28 ]
Post subject: 

Robert:

> i receive this error: Fatal error: Call to undefined
> function: imagecreatefrompng() in
> /var/www/nver.net/seti/seti_lib.inc.php on line 335
> i'm not very familiar with php, but i think it's
> configured is ok.... :
> PHP Version 4.3.8-5

Hi. This may be obvious, but please try it out first. Create a test.php file in the same directory where the PHPSETIMon files are stores, with the following content:

Code:
<?php phpinfo(); ?>


Then load it with your browser and you will see a full listing of all enabled PHP modules. Check for the GD section. I think you've already done this but please check it in the same directory where the program is installed.

The causes of that error are: not installed GD lib, local PHP configuration different from global, maybe a broken PHP, and a GD lib without PNG support.

Please let me know if you discovered the cause or solved it.


Regards,

Mario A. Valdez-Ramirez.

Author:  Guest [ 21 Sep 2004, 03:31 ]
Post subject: 

hi,
i've created the test.php in the installation-dir - this is the output of the gd-section:

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

i think, everything seems to be ok......

regards,
robert[/img]

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/