imagepng()

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
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

imagepng()

Post 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!
sousousou
Forum Commoner
Posts: 29
Joined: Fri Aug 28, 2009 1:10 pm

Re: imagepng()

Post 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) ?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: imagepng()

Post 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).
Post Reply