When upgrading php from php4 to php5, the following error occurs;
gd-png: fatal libpng error: zlib error
I've found the solution - so I thought i'd post it here to help others.
In php5, the quality range changes for imagePNG from 0-99 to 0-9. therefore you need to change your code to relect this, e.g.
imagePNG('','', 9);
(instead of imagePNG('','',90)) - I divided the quality value by 10 and then round or floor the value accordingly.
Subscribe to:
Post Comments (Atom)
13 comments:
Thx, that was very useful for me. I could quickly fix WP-SimpleViewer-Gallery.
thanks a lot!
Thanks Buddy
From
Adil
uomian2004@gmail.com
TNX!!!!
That fixed it! Thank you.
I love you for this post. It could have been one of those problems that I would get stuck on for...god knows how long, and it allowed me to finish my work and get my target today. Genius!
thanks a lot!
your post was very useful!!!
на такую же ошибку наткнулся, зачем вводить такие изменения в библиотеки, не понимаю..
10x man!
Thanks a lot.
Thanks a lot, buddy! It saved a lot of my time!
Well done - saved my bacon.
Thanks
Post a Comment