Page 1 of 1

ImagickException - Wand contains no images

Posted: 2010-01-27T21:31:29-07:00
by rajamcasoft
I have installed imagick extension with version 6.5.6. I am getting the below error message while I am trying to read the image:

exception 'ImagickException' with message 'Wand contains no images `MagickWand-2' @ magick-image.c/MagickSetImageFilename/9789' in /home/mydomain/www/photosfolder/uploadimagesxx.php:817 Stack trace:
#0 /home/mydomain/photosfolder/uploadimagesxx.php(817): Imagick->readimage('/home/mydomain/www...') #1 /home/mydomain/photosfolder/uploadimagesxx.php(262): reSizePhoto('/home/mydomain/www...', 'ashjahjjimage...', 450, 450) #2 {main}

Code:
$imagickr = new Imagick();
$imagickr->readImage($imagenamefullpath);

Platform : Linux
PHP Version: 5.2.3
Suggest a solution for this.

Re: ImagickException - Wand contains no images

Posted: 2010-02-13T19:55:39-07:00
by mkoppanen
Fixed with later versions of Imagick (3.x). The earlier versions show wrong error message.