fix libpng warning: iCCP: Not recognizing known sRGB profile ......

简介: 本文介绍了如何解决在使用ImageMagick 7.1.0-13 q16 x64时出现的libpng警告:iCCP: 不识别已知的sRGB配置文件的问题。提供了一个批处理脚本,该脚本可以搜索子目录中的PNG文件并处理它们,以消除警告。文章还提供了脚本的位置和运行结果的截图。

工具下载:

ImageMagick-7.1.0-13-Q16-HDRI-x64-dll.exe Win64 dynamic at 16 bits-per-pixel component with High-dynamic-range imaging enabled

创建脚本:

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

脚本位置:

双击脚本,运行结果:

相关文章
|
7月前
|
Linux iOS开发 MacOS
pnpm全局安装报错:Run “pnpm setup“ to create it automatically, or set the global-bin-dir setting, or the PN
pnpm全局安装报错:Run “pnpm setup“ to create it automatically, or set the global-bin-dir setting, or the PN
2154 0
configure: error: Could not find cups!
configure: error: Could not find cups!
484 0
|
5月前
|
Linux 开发工具
You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofi
linux配置环境变量操作失误出现:/usr/libexec/grepconf.sh: line 5: grep: command not found 的解决办法
209 2
|
6月前
No rule to make target ‘.xxxxxxxx‘, needed by ‘debug/xxxx.cpp‘. Stop.
No rule to make target ‘.xxxxxxxx‘, needed by ‘debug/xxxx.cpp‘. Stop.
|
6月前
|
编译器
“Could not determine which ”make“ command to run. Check the ”make“ step in the build configuration.”
“Could not determine which ”make“ command to run. Check the ”make“ step in the build configuration.”
|
7月前
|
JavaScript
报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
135 2
|
开发工具 git
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
编译pluma:configure.ac:229: error: required file ‘pluma/mate-submodules/Makefile.in‘ not found
130 0
|
C语言
configure:3855: gcc -V >&5 gcc: error: unrecognized command line option '-V'
configure:3855: gcc -V >&5 gcc: error: unrecognized command line option '-V'
691 0
libtool: Version mismatch error. This is libtool 2.4.6, but the definition of this LT_INIT
libtool: Version mismatch error. This is libtool 2.4.6, but the definition of this LT_INIT
130 0
|
应用服务中间件 Linux nginx
./configure: error: C compiler cc is not found
./configure: error: C compiler cc is not found
883 0