Skip to content
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

GD library error: imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile #553

Open
lvsan opened this issue Sep 26, 2022 · 2 comments · May be fixed by #601
Open

Comments

@lvsan
Copy link

lvsan commented Sep 26, 2022

HI,

I have facing an issues when upload the image to be display for pdf using path.
after I have amend the tcpdf.php and change as below :

$img = imagecreatefrompng($file); ===> $img = @imagecreatefrompng($file);

then the files is working fine. But currently i try using imageExpression to pass the value to the path, but the image not working.

Anyone can assists?

Thanks.

@lvsan
Copy link
Author

lvsan commented Sep 26, 2022

HI,

I have able to solve when i have amend the tcpdf.php under the public function Image(.... function.

image

The above image is the code that I have amend to allow display the png image.

Below is the image successfully display.

image

thanks.

@lpetrora lpetrora linked a pull request Mar 24, 2023 that will close this issue
@Mike-Benoit
Copy link

We are seeing this warning quite frequently as well. Since it is just a warning and not an error, it would be nice to silence it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants