Page 1 of 1

Magick++: NoDecodeDelegateForThisImageFormat with ICO file

Posted: 2009-08-27T15:27:45-07:00
by bytep
I'm using Magick++ as shared libraries (libMagick++.so.2, libMagickCore.so.2, libMagickWand.so.2) for our application which runs on Solaris 64-bit.

It works fine with JPEG, PNG and GIF images but when trying with ICO image, I got the above error.

Here is the piece of code that results in the error:

Blob blob(buf, image_size);
Image image(blob);

where the ICO image is read and stored in buf.

Here is my "identify -list configure" output:

Path: configure.xml

Name Value
-------------------------------------------------------------------------------
CC /opt/SUNWspro/bin/cc -xc99=all
CFLAGS -xO3 -KPIC -mt -m64 -D_REENTRANT
CONFIGURE ./configure '--with-modules=no' '--without-perl' '--without-dps' '--without-freetype' '--with-fontconfig=no' '--without-x' '--without-xml' '--disable-static' '--disable-installed' '--disable-openmp' 'CC=/opt/SUNWspro/bin/cc' 'CFLAGS=-xO3 -KPIC -mt -m64' 'CXX=/opt/SUNWspro/bin/CC' 'CXXFLAGS=-xO3 -mt -m64 -KPIC -library=stlport4' 'CCC=/opt/SUNWspro/bin/CC -library=stlport4'
COPYRIGHT Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX /opt/SUNWspro/bin/CC
CXXFLAGS -xO3 -mt -m64 -KPIC -library=stlport4 -D_REENTRANT
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib jpeg jng png tiff zlib
DISTCHECK_CONFIG_FLAGS 'CC=/opt/SUNWspro/bin/cc' 'CFLAGS=-xO3 -KPIC -mt -m64' 'CXX=/opt/SUNWspro/bin/CC' --disable-deprecated --disable-installed --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-dps=no --with-fontconfig=no --with-freetype=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-wmf=no --with-xml=no
EXEC-PREFIX /usr/local
HOST i386-pc-solaris2.10
LDFLAGS -L/usr/local/lib -Wl,-zlazyload
LIB_VERSION 0x653
LIB_VERSION_NUMBER 6,5,3,1
LIBS -lMagickCore -ltiff -ljpeg -lpng -lbz2 -lz -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 2009-06-17
VERSION 6.5.3
WEBSITE http://www.imagemagick.org

And "identity -list format" shows:
ICO* ICON rw+ Microsoft icon
ICON* ICON rw- Microsoft icon
PICON* XPM rw- Personal Icon


In short the binaries works. I can use "convert" to convert ICO to JPEG.

So does Magick++ does not support ICO ? Or am I missing something that causes ICO handling to fail?

Any help is highly appreciated.

Re: Magick++: NoDecodeDelegateForThisImageFormat with ICO file

Posted: 2009-08-27T15:37:28-07:00
by fmw42
use the Search feature in the forum (see Search link on top right) to search for "ICO Files" many people have reported issues and solutions are given depending upon the issue.

Solved: Magick++: NoDecodeDelegateForThisImageFormat with IC

Posted: 2009-09-02T11:16:15-07:00
by bytep
Problem goes away if calling magick() b4 calling read(blob)