原因是新版的libpng增强了检查,发出警告。此警告可以忽略。
若要消除此警告则要使用v4的色彩配置。
GIMP sRGB v4 色彩配置,修改当前图片的色彩配置,设为默认。

sRGB profiles
On this page you will find several different types of sRGB profiles, with information about their intended use.

sRGB v4 Preference
sRGB v4 Appearance
sRGB v2

sRGB v4 Preference
The sRGB v4 ICC preference profile is a v4 replacement for commonly used v2 sRGB profiles. It gives better results in workflows that implement the ICC v4 specification. It is intended to be used in combination with other ICC v4 profiles.
The advantages of the new profile are:
More pleasing results for most images when combined with any correctly-constructed v4 output profile using the perceptual rendering intent.
More consistently correct results among different CMMs using the ICC-absolute colorimetric rendering intent.
Higher color accuracy using the media-relative colorimetric intent.
A typical use case would be to print sRGB images captured with a digital still camera. In this case a user could open the image in Adobe® Photoshop®, assign the sRGB v4 profile as shown in Figure 1. Adobe® Photoshop® is either a registered trademark or trademark of Adobe Systems Incorporated in the United States and/or other countries.

解决方法:

下载ImageMagick:https://imagemagick.org/script/download.php#windows

然后将图片打开再另存即可。

批量执行

也可以通过脚本转换,同样需要上面的工具,注意将fn的值修改为程序安装的路径

@echo off
echo ImageMagick fix libpng warning: iCCP: Not recognizing known sRGB profile ......
echo Search PNG in subdirs and process ...
set fn=C:\soft\ImageMagick-7.0.-Q16\convert.exe
for /f "tokens=*" %%i in ('dir/s/b *.png') do "%fn%" "%%i" -strip "%%i"
pause

然后将该bat脚本放在图片目录下

双击执行即可

所有图片就已经替换完毕了!

参考:

https://www.cnblogs.com/Esperanto/p/8044032.html

https://zhidao.baidu.com/question/1175819353197087339.html

https://blog.csdn.net/u010212648/article/details/82191419

https://blog.csdn.net/chan_qx/article/details/53929727

https://imagemagick.org/script/download.php#windows

最新文章

  1. SpringMVC(五) RequestMapping 请求参数和请求头
  2. django的ajax对应前端的瀑布流方法
  3. [渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:为ASP.NET MVC应用程序实现继承
  4. CANopen DS301协议中文翻译V03版
  5. nginx 负载均衡服务器的双机搞可用
  6. Android measure和layout的一点理解
  7. html5 base64基础
  8. MSP下载方式
  9. CF Amr and Pins (数学)
  10. 缓存你的BITMAP对象
  11. Qt 读写XML文件
  12. for循环执行顺序
  13. 第13章 Swing程序设计----常用面板
  14. 再看Java基本类型
  15. Linux安装JProfiler监控tomcat
  16. Zookeeper的安装配置及基本开发
  17. dsu on tree 树上启发式合并 学习笔记
  18. CentOS7 设置yum源
  19. windows 10系统 上安装scrapy
  20. 基于RHEL6.3 安装MySQL踩过的坑

热门文章

  1. mysql中的锁机制之概念篇
  2. (六)Redis之数据结构之sorted-set
  3. wstngfw中配置snort
  4. form表单提交后结果乱码的解决方法
  5. c#排序sql语句查询
  6. 线段树lazy模板 luogu3372
  7. c# String常用方法
  8. C和指针--预处理器
  9. 1.Hbase集群安装配置(一主三从)
  10. Python3+Appium学习笔记05-报错及解决方法