I am trying to extract images in CentOS machine using ImageMagick's convert command as below:
convert -coalesce http://cdn.abcdf.com/p/f7/81/d3/40/f781d34031e68828eaasdwc937cf3f8.gif /mnt/temp/123.png
I am getting the following error:
convert: unable to open image `//cdn.adnxs.com/p/f7/81/d3/40/f781d34031e6882840eaa6dc937cf3f8.gif': No such file or directory @ error/blob.c/OpenBlob/2701.
convert: no decode delegate for this image format `HTTP' @ error/constitute.c/ReadImage/504.
convert: no images defined `/mnt/ephemeral2/creative_report/temp/123.png' @ error/convert.c/ConvertImageCommand/3258
I tried reinstalling ImageMagick from source but it was of no use.
答案 0 :(得分:1)
我通过重新安装IM和缺少的libxml2-devel库解决了这个问题。以下是我遵循的步骤:
1)cd (ImageMagick folder)
2)make uninstall
3)yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel libxml2-devel
4)wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.9.9-0.tar.gz
5)tar xvfz ImageMagick-6.9.9-0.tar.gz
6)cd (the folder created)
7)./configure --prefix=/usr/local --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes
8)make clean
9)make
10)make install
答案 1 :(得分:0)
On windows I would put double quotes around the path as it looks like it is breaking up the image path.
答案 2 :(得分:0)
您的链接不好。我的浏览器告诉我它找不到服务器。在ImageMagick中,您应该首先阅读输入图像。因此,如果您修复了您的网址,那么
convert http://cdn.abcdf.com/p/f7/81/d3/40/f781d34031e68828eaasdwc937cf3f8.gif -coalesce /mnt/temp/123.png