6.9.2-4编译安装后缺少http delegate
Missing http delegate after compiling and installing 6.9.2-4
我 运行 宁 Ubuntu 14 on AWS EC2,我使用的是旧版本的 ImageMagick (6.7)。
我刚刚下载了源代码,编译并安装了 6.9.2-4 版本——我已经按照这里的确切说明进行操作:
http://www.imagemagick.org/script/install-source.php
但是,我无法对来自网络的图像进行任何操作 - 例如:
convert "http://www.nike.com/nikebasketball/us/en_US/images/kicks/athletes/kobe_bryant.png" test.png
convert: unable to open image `//www.nike.com/nikebasketball/us/en_US/images/kicks/athletes/kobe_bryant.png': No such file or directory @ error/blob.c/OpenBlob/2701.
convert: no decode delegate for this image format `HTTP' @ error/constitute.c/ReadImage/501.
convert: no images defined `test.png' @ error/convert.c/ConvertImageCommand/3230.
测试成功,我的版本信息显示:
Version: ImageMagick 6.9.2-4 Q16 x86_64 2015-10-27 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC OpenMP
Delegates (built-in): fontconfig freetype jbig jng jpeg lzma openexr pangocairo png tiff x zlib
如果我运行:
convert -list delegate | grep http
我得到:
https => "curl" -s -k -L -o "%o" "https:%M"
如果我重新安装 6.7 版本,它可以正常工作...
知道如何解决这个问题吗?
您需要安装 html2ps
实用程序。我假设 html2ps
是 postscript 包的一部分。
convert -list delegate | grep html
htm => "html2ps" -U -o "%o" "%i"
html => "html2ps" -U -o "%o" "%i"
shtml => "html2ps" -U -o "%o" "%i"
如果这对任何人有帮助,我终于能够按照此处提供的说明解决此问题:
https://www.namhuy.net/1730/install-imagemagick-6-8-linux-mint-ubuntu.html
打开 policy.xml
(通常位于 /usr/local/etc/ImageMagick-6
)并取消注释以下行:
<!--
<delegate decode="https" command=""curl" -s -k -L -o "%o" "https:%F""/>
-->
这将允许 ImageMagick 使用 https
解码器(这只是一个 curl
调用)
我 运行 宁 Ubuntu 14 on AWS EC2,我使用的是旧版本的 ImageMagick (6.7)。 我刚刚下载了源代码,编译并安装了 6.9.2-4 版本——我已经按照这里的确切说明进行操作: http://www.imagemagick.org/script/install-source.php 但是,我无法对来自网络的图像进行任何操作 - 例如:
convert "http://www.nike.com/nikebasketball/us/en_US/images/kicks/athletes/kobe_bryant.png" test.png
convert: unable to open image `//www.nike.com/nikebasketball/us/en_US/images/kicks/athletes/kobe_bryant.png': No such file or directory @ error/blob.c/OpenBlob/2701.
convert: no decode delegate for this image format `HTTP' @ error/constitute.c/ReadImage/501.
convert: no images defined `test.png' @ error/convert.c/ConvertImageCommand/3230.
测试成功,我的版本信息显示:
Version: ImageMagick 6.9.2-4 Q16 x86_64 2015-10-27 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC OpenMP
Delegates (built-in): fontconfig freetype jbig jng jpeg lzma openexr pangocairo png tiff x zlib
如果我运行:
convert -list delegate | grep http
我得到:
https => "curl" -s -k -L -o "%o" "https:%M"
如果我重新安装 6.7 版本,它可以正常工作...
知道如何解决这个问题吗?
您需要安装 html2ps
实用程序。我假设 html2ps
是 postscript 包的一部分。
convert -list delegate | grep html
htm => "html2ps" -U -o "%o" "%i"
html => "html2ps" -U -o "%o" "%i"
shtml => "html2ps" -U -o "%o" "%i"
如果这对任何人有帮助,我终于能够按照此处提供的说明解决此问题: https://www.namhuy.net/1730/install-imagemagick-6-8-linux-mint-ubuntu.html
打开 policy.xml
(通常位于 /usr/local/etc/ImageMagick-6
)并取消注释以下行:
<!--
<delegate decode="https" command=""curl" -s -k -L -o "%o" "https:%F""/>
-->
这将允许 ImageMagick 使用 https
解码器(这只是一个 curl
调用)