ImagickException' - Wand contains no images
Posted: 2010-01-27T05:27:59-07:00
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.
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.