Skip to main contentSkip to footer

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

Rupak Nepali
Share:
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

Comments

Join the conversation and share your thoughts

Leave a Comment

Your comment will be reviewed before publishing.

Be the first to comment on this post!

Innovation

Let's Make Something Amazing Together

We always provide our best creative ideas at the highest level. Tell us about your project and we will make it work.

InnovateBringing innovative solutions to complex problems
AutomateStreamlining processes through automation
DominateLeading the market with exceptional results
Build Smarter and Launch FasterEfficient development for rapid deployment