Page 1 of 1

Imagick class

Posted: 2011-01-11T05:51:29-07:00
by indelam
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.....

Re: Imagick class

Posted: 2011-01-11T11:50:29-07:00
by Dulfer
<?php
system ('php -m', $r);
var_dump($r);
?>
??

Re: Imagick class

Posted: 2011-01-11T15:13:42-07:00
by indelam
Dulfer wrote:<?php
system ('php -m', $r);
var_dump($r);
?>
??
This gives me int(255)

I need this to create a thumbnail of pdf's first page i see Imagick is the only solution...

Re: Imagick class

Posted: 2011-01-12T11:33:05-07:00
by Dulfer
Sorry
path - full
examle - '/usr/local/bin/php -m'
or do it

Code: Select all

<?php
  if (extension_loaded('imagick'))
  { 
	echo 'imagick is load';
  }
  else
  {
	 echo 'imagick is not load'; 
  }
?>