Getting this error?
PHP Fatal error: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in example.php on line 10
Fix it easily by changing your compression variable of imagepng, imagegif or imagejpg/imagejpeg into a 1-10 ranged number – instead of the PHP 4 1-100 standard.
It should work smoothly now :)
Share this with friends:
Like what you've just read? Share it to your friends using your favourite service below:
Comments:
Pingbacks/Trackbacks:
[...] I googled this error and browsed through several Websites until I found this explanation: From PHP 4 to PHP 5.. PHP Fatal zlib error: imagepng() [...]
Add a Comment: