php-image-resize icon indicating copy to clipboard operation
php-image-resize copied to clipboard

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

Open sekedus opened this issue 1 year ago • 2 comments
trafficstars

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 avatar Jan 17 '24 11:01 sekedus

https://github.com/gumlet/php-image-resize/blob/54165d97ebc3d4fc188761166b78e6702f605f59/lib/ImageResize.php#L164

sekedus avatar Jan 17 '24 11:01 sekedus

Remove/suppress warning messages with @

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

sekedus avatar Jan 17 '24 11:01 sekedus