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);