Uh oh!
There was an error while loading. Please reload this page.
fix: imagecreatefrompng() gd-png: libpng warning - #7570
Conversation
imagecreatefrompng() error.imagecreatefrompng() error.imagecreatefrompng() error.imagecreatefrompng() error.imagecreatefrompng() gd-png: libpng warningkenjis
commented
Jun 14, 2023
Cannot reproduce the error. Can you give an sample image file? |
ping-yee
commented
Jun 15, 2023
I use the any else field image file of the issue. But I can reproduce the problem at PHP8.1 in few days ago. I'll try it again later. |
![]() @kenjis I still the error in the latest |
kenjis
commented
Jun 16, 2023
@ping-yee Thank you for reproducing. |
michalsn
commented
Jun 16, 2023
Before we just suppress the error reporting for this, can we try to figure out the real cause? It seems like this is related to libPNG version we're using. @ping-yee Can you tell me what If it's not the latest one, maybe upgrading would solve the issue? |
kenjis
commented
Jun 17, 2023
@michalsn Even If it is a bug in libpng, devs may not be able to upgrade it when using a shared hosting or so. |
michalsn
commented
Jun 17, 2023
@kenjis This is true, but I would like to check if this is a permanent problem or if it has been fixed. Feedback with at least the libpng version in use would be appreciated. Because, as we can see, not every environment is affected and this error seems to be returned only under "specific conditions". |
kenjis
commented
Jun 17, 2023
@michalsn Okay, I got your intention. Let's wait for feedback. |
michalsn
commented
Jun 17, 2023
@kenjis Whether I receive feedback or not, it will not change the essence of the problem, so feel free to merge. |
ping-yee
commented
Jun 17, 2023
I can't answer this immediately because I'm on vacation in Japan and don't have the computer. But I actually command composer update before I reproduce that problem. |
michalsn
commented
Jun 17, 2023
@ping-yee No worries, enjoy your vacation. Although |
ping-yee
commented
Jun 19, 2023
I may find out the problem, I use the And I just enter it's env and get the result as below after command Seems this image have some problem, but this PR change can actually fix that problem in this environment. |
michalsn
commented
Jun 19, 2023
@ping-yee Can you run |
ping-yee
commented
Jun 24, 2023
![]() @michalsn like this? |
michalsn
commented
Jun 24, 2023
@ping-yee Yes, thanks. It looks like you don't have the latest version, which is |


Description
Fixes#7567.
It seems this is a bug of php.
Ref:
Checklist: