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.
ImageMagick convert command not generating images
-
- Posts: 2
- Joined: 2017-08-07T04:32:50-07:00
- Authentication code: 1151
Re: ImageMagick convert command not generating images
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.
Running the code with double quotation marks as I suggested gives me 3 png file on a Windows computer.
-
- Posts: 2
- Joined: 2017-08-07T04:32:50-07:00
- Authentication code: 1151
Re: ImageMagick convert command not generating images
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
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