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

imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile #194

Open
sekedus opened this issue Jan 17, 2024 · 2 comments

Comments

@sekedus
Copy link

sekedus commented Jan 17, 2024

Hello, I got this error:

imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile

Image file: https://github.com/gumlet/php-image-resize/assets/25115799/2d60249e-f33a-4dbe-9deb-7c655473472f

PHP: 7.4.28
gumlet/php-image-resize: 2.0.4

@sekedus
Copy link
Author

sekedus commented Jan 17, 2024

$this->source_image = imagecreatefrompng($filename);

@sekedus
Copy link
Author

sekedus commented Jan 17, 2024

Remove/suppress warning messages with @

$this->source_image = @imagecreatefrompng($filename);

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

No branches or pull requests

1 participant