Warning: imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /system/library/image.php on line 45

Once we upgrade the PHP to the 8+ version we keep seeing the error like Warning: imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /system/library/image.php on line 45.

The fix that we implemented is by suppressing using @. Open system/library/image.php and find imagecreatefrompng($file); and add @ before it.

$this->image = @imagecreatefrompng($file);
imagecreatefrompng
Previous articleAugmented Reality vs. Virtual Reality: Which Technology Will Dominate Software Development?
Next article12+ Artificial Intelligence ideas that you can use for your eCommerce website
Author of three Opencart book. The recent Opencart 4 book is at https://amzn.to/4dOlbOR

LEAVE A REPLY

Please enter your comment!
Please enter your name here