The detailed process
I. Description of the problem
I was doing an image processing project (VS2017 + OpenCV3.30), I found the following warning will always appear in the console:
libpng warning: iCCP: Known in here Incorrect sRGB Profile
libpng warning: iCCP: cHRM chunk does not match sRGB
Second, the problem analysis
Through access to information that is: the new version of libpng on iCCP to adopt a more stringent constraints, some pictures in other formats (eg jpg format) falsely using the suffix or png color channels, bit depth unequal.
Third, the solution
Be explored through multi-blogger search data, there are three solutions:
1. Install ImageMagick to convert pictures
This you can refer to other bloggers articles. ImageMagick download from the official website of the archive, address: http://www.imagemagick.org/script/binary-releases.PHP
depending on the platform that corresponds to download compressed packages, such as Windows download ImageMagick-7.0.4-0-portable-Q16 -x64.zip.
2. Use the picture PS conversion
Open the picture with the PS, editor - specify the configuration file - modify the configuration file for the Adobe RGB (1998), and then click OK to save
3. Modify the input method
Input to the other input of the system comes into a debugging process in a ~
If you have additional questions or discussions and exchange opinions welcome!