Some .png
images used in pygame may get the warning read as "libpng warning: iCCP: known incorrect sRGB profile". To solve this I have searched and found the solution by using ImageMagick. After installing, single file can be fixed by calling convert <in_img> -strip <out_img>
, but to make it fixes every wanted images in path we'll need to modify just a little bit.
Create .bat
file contains the following code and place this .bat
in the folder that want to be fixed and run to finish it out.
@echo off
ping -n 2 127.0.0.1 > nul
echo this batch will convert ".png" using -strip option from ImageMagick.