-
Notifications
You must be signed in to change notification settings - Fork 2k
fix: imagecreatefrompng() gd-png: libpng warning
#7570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
imagecreatefrompng() error.
imagecreatefrompng() error.imagecreatefrompng() error.
imagecreatefrompng() error.imagecreatefrompng() gd-png: libpng warning
|
Cannot reproduce the error. Can you give an sample image file? |
|
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 |
|
@ping-yee Thank you for reproducing. |
|
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? |
|
@michalsn Even If it is a bug in libpng, devs may not be able to upgrade it when using a shared hosting or so. |
|
@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". |
|
@michalsn Okay, I got your intention. Let's wait for feedback. |
|
@kenjis Whether I receive feedback or not, it will not change the essence of the problem, so feel free to merge. |
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. |
|
@ping-yee No worries, enjoy your vacation. Although |
|
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. |
|
@ping-yee Can you run |
@michalsn like this? |
|
@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: