Wand contains no images.... please help :)

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
ash

Wand contains no images.... please help :)

Post by ash »

Hi All,

I am new to this so be kind :D . I am trying to use Imagick and am having some serious problems with it.

This is the error I am getting when I try to run the PHP file:

Code: Select all

 Could not load image: Wand contains no images `MagickWand-1' @ magick-image.c/MagickSetImageFilename/9626
The code for the files is as follows:

Code: Select all

/* Read the image */
$im = new imagick();
 try {
            $im->readImage("lib/images/about.png");

        } catch (ImagickException $e) {
            //$im->free();
            echo 'Could not load image: '.$e->getMessage();
				exit;
        }
running identify -list configure gives the following output:

Code: Select all

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

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99
CFLAGS        -fopenmp -g -O2 -Wall -W -pthread
CONFIGURE     ./configure 
COPYRIGHT     Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS      -I/usr/local/include/ImageMagick
CXX           g++
CXXFLAGS      -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontconfig=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-xml=no
EXEC-PREFIX   /usr/local
HOST          x86_64-unknown-linux-gnu
LDFLAGS       -L/usr/local/lib 
LIB_VERSION   0x655
LIB_VERSION_NUMBER 6,5,5,0
LIBS          -lMagickCore -lm -lgomp -lpthread 
NAME          ImageMagick
PCFLAGS       -fopenmp
PREFIX        /usr/local
QuantumDepth  16
RELEASE_DATE  2009-08-22
VERSION       6.5.5
WEBSITE       http://www.imagemagick.org
I have also tried the following:
convert logo: logo.miff
identify logo.*

Code: Select all

logo.gif GIF 640x480 640x480+0+0 8-bit PseudoClass 256c 37.4kb 
logo.miff[1] MIFF 640x480 640x480+0+0 8-bit Palette PseudoClass 256c 301kb 
Does anyone know how I can fix this issue.

Many thanks in advance.

Cheers,
Ash
dreeh
Posts: 5
Joined: 2007-01-17T01:54:24-07:00
Location: Munich, Germany

Re: Wand contains no images.... please help :)

Post by dreeh »

do you have found a solution?

i'm going into the same error.
Post Reply