Imagick class
Posted: 2011-01-11T05:51:29-07:00
Imagic is installed on my website I'm unable to run this simple code
<?php
$images = new Imagick(glob('*.JPG'));
foreach($images as $image) {
// Providing 0 forces thumbnailImage to maintain aspect ratio
$image->thumbnailImage(1024,0);
}
$images->writeImages();
?>
it says "Fatal error: Class 'Imagick' not found in /home/..."
How/where should I include class and where can i find that.....
<?php
$images = new Imagick(glob('*.JPG'));
foreach($images as $image) {
// Providing 0 forces thumbnailImage to maintain aspect ratio
$image->thumbnailImage(1024,0);
}
$images->writeImages();
?>
it says "Fatal error: Class 'Imagick' not found in /home/..."
How/where should I include class and where can i find that.....