ImageMagick - 命令适用于 ubuntu 但不适用于 centos
ImageMagick - command working on ubuntu but not centos
知道为什么以下内容在 ubuntu 上可以正常工作:
convert -background lightblue -fill blue -pointsize 14 label:123 test.jpg
但在 centos (7) 上得到此响应
convert: not authorized `123' @ error/constitute.c/ReadImage/454.
convert: no images defined `test.jpg' @ error/convert.c/ConvertImageCommand/3046.
我已经尝试了几个不同的版本。
它与所有这些有什么关系吗.. centos 中缺少什么?
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
如果是这样,我该如何安装缺少的东西?
这是我的 centos 版本信息:(来自 yum install ImageMagick
)
$ convert --version
Version: ImageMagick 7.0.8-14 Q16 x86_64 2018-11-17 https://imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP
Delegates (built-in): zlib
编辑 /etc/ImageMagick/policy.xml 并注释掉 "LABEL" 行:
<!-- <policy domain="coder" rights="none" pattern="LABEL" /> -->
不要问我为什么这个在 CentOS 中被禁用。 IM 有一些已知的漏洞,RHEL/CentOS 有点偏执。
知道为什么以下内容在 ubuntu 上可以正常工作:
convert -background lightblue -fill blue -pointsize 14 label:123 test.jpg
但在 centos (7) 上得到此响应
convert: not authorized `123' @ error/constitute.c/ReadImage/454.
convert: no images defined `test.jpg' @ error/convert.c/ConvertImageCommand/3046.
我已经尝试了几个不同的版本。
它与所有这些有什么关系吗.. centos 中缺少什么?
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
如果是这样,我该如何安装缺少的东西?
这是我的 centos 版本信息:(来自 yum install ImageMagick
)
$ convert --version
Version: ImageMagick 7.0.8-14 Q16 x86_64 2018-11-17 https://imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP
Delegates (built-in): zlib
编辑 /etc/ImageMagick/policy.xml 并注释掉 "LABEL" 行:
<!-- <policy domain="coder" rights="none" pattern="LABEL" /> -->
不要问我为什么这个在 CentOS 中被禁用。 IM 有一些已知的漏洞,RHEL/CentOS 有点偏执。