Page 1 of 1

imagepng()

Posted: Fri Sep 04, 2009 3:59 am
by dejvos
Hi,

I've problem with imagepng() function. Everithing is OK when I try to create image 800x1150 but If I change size to 800x1960 it doesn't happen anything. Do you know if there is any restrictions?

Thanks!

Re: imagepng()

Posted: Fri Sep 04, 2009 12:13 pm
by sousousou
As far as I know there is no limit. What's the rest of the code?

Do you use imagecreatetruecolor($width, $height); and then imagepng($img) ?

Re: imagepng()

Posted: Fri Sep 04, 2009 12:17 pm
by John Cartwright
Try increasing the memory limit in php, i.e.

Code: Select all

ini_set('memory_limit', '32mb');
Make sure you have display_errors set to true and your error reporting is atleast E_ALL (to reveal the true nature of the error).