Page 1 of 1

i want to imagecreatefrompng

Posted: Tue Sep 29, 2009 1:53 am
by blomberg
when i want use this function i getting this mesage:
Call to undefined function imagecreatefrompng()
what am i doing for this problem?
tnx

Re: i want to imagecreatefrompng

Posted: Tue Sep 29, 2009 4:10 am
by requinix
What you're doing is trying to use a function that doesn't exist.

What you should be doing to fix it is make sure you have the GD extension enabled. In php.ini uncomment the line

Code: Select all

;extension=php_gd2.*
and restart your server.

Re: i want to imagecreatefrompng

Posted: Tue Sep 29, 2009 5:59 am
by uyewq
hi tasairis,
i am not sure but maybe you do not have GD Library support in your server.
You should better google about GD library, php image creating ...

You can check your php info with

Code: Select all

<?php echo phpinfo(); ?>
bye