ImageMagick convert command not generating images

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ananthshenoyh
Posts: 2
Joined: 2017-08-07T04:32:50-07:00
Authentication code: 1151

ImageMagick convert command not generating images

Post by ananthshenoyh »

I am trying to extract images in CentOS machine using ImageMagick's convert command as below:

1)convert -coalesce /mnt/temp/giphy.gif /mnt/temp/123.png : This command works and generates the images.

2)convert -coalesce http://cdn.abcdf.com/p/f7/81/d3/40/f781 ... 7cf3f8.gif /mnt/temp/123.png : While executing this command I am getting error mentioned as below:

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. My ImageMagick version is 6.9.9-0. I have tried upgrading the version but still ended up getting same error.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: ImageMagick convert command not generating images

Post by Bonzo »

Did you try either of the suggestions made in the comment to your post on Stackoverflow?

Running the code with double quotation marks as I suggested gives me 3 png file on a Windows computer.
ananthshenoyh
Posts: 2
Joined: 2017-08-07T04:32:50-07:00
Authentication code: 1151

Re: ImageMagick convert command not generating images

Post by ananthshenoyh »

I found the issue was because of missing libxml2-devel library. I uninstalled IM and installed it again with all required libraries. Below are the steps I followed:
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/ImageMagi ... 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
Post Reply