Exception while trying to download a GIF

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
djeauh
Posts: 1
Joined: 2011-07-19T01:22:26-07:00
Authentication code: 8675308

Exception while trying to download a GIF

Post by djeauh »

Hello,

I have an issue using the Magick::Image class.

Sometimes, when I try to retrieve a GIF image using an url the constructor fails, an exception is thrown and the following output occurs on stdout:

Magick: no decode delegate for this image format `//www.nn4d.com/images/ms/free_symbol_ids/ ... 4_1028.gif' @ error/constitute.c/ReadImage/532

The image url I'm giving to the constructor is http://www.nn4d.com/images/ms/free_symb ... 4_1028.gif

When I download manually the image and I give the path to the constructor of the class I have no error and the image is successfully loaded.

I thought that GIF decoding was built-in in Magick. What can I do to solve this issue?

Here is the convert -list configure result:

shiva:/usr/local/src/libnavteq# convert -list configure

Path: /usr/local/lib/ImageMagick-6.6.7/config/configure.xml

Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -g -O2 -Wall -pthread
CONFIGURE ./configure '--with-dejavu-font-dir=/usr/share/fonts/truetype/ttf-dejavu' '-with-xml=yes'
COPYRIGHT Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES freetype jpeg jng png tiff zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-dejavu-font-dir=/usr/share/fonts/truetype/ttf-dejavu --with-fontconfig=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-perl=no
EXEC-PREFIX /usr/local
FEATURES
HOST x86_64-unknown-linux-gnu
LDFLAGS -L/usr/local/lib
LIB_VERSION 0x667
LIB_VERSION_NUMBER 6,6,7,1
LIBS -lMagickCore -ltiff -lfreetype -ljpeg -lpng -lz -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 2011-05-17
VERSION 6.6.7
WEBSITE http://www.imagemagick.org

Path: [built-in]

Name Value
-------------------------------------------------------------------------------
NAME ImageMagick

Notes:
--> I have already experienced this issue. The only way I had to solve it was to rebuild and install the library.
--> I did a make check and all tests passed successfully

Thank you for your help!!
Post Reply