Home > other >  Libpng warning: iCCP: known incorrect sRGB profile how to solve?
Libpng warning: iCCP: known incorrect sRGB profile how to solve?

Time:09-28




Was using pygame to do a game, the game icon to PNG images, and then refresh this warning, more major is game also caton...
How to solve? If I am newcomer, retarded also please understanding...

CodePudding user response:

The reasons for this warning is the latest version of the "libpng" to enhance the inspection of the images
The solution:
https://imagemagick.org/script/download.php
Web page download program installation



After the download
In your store images in the folder
Build a TXT document
Write:
@ echo off
Echo ImageMagick fix libpng warning: iCCP: Not recognizing known sRGB profile...
Echo Search PNG subdirs and in the process...
The set fn=C: \ Program Files \ ImageMagick - 7.0.9 - Q16 \ imdisplay exe
For/f tokens="*" % % I in (' dir/s/b *. PNG ') do fn "% % % %" I "is" - strip "% % I
"Pause

Note that fn is your program directory (after installed the software, PM on the shortcut properties, copies to path to download, then shortcut points to an exe file write up)
Finally change TXT suffix to bat and run will repeat pop-up Windows pop up every time when press the save button above and repeated several times until no longer turn off window pop-up
  • Related