Imagick class

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
indelam
Posts: 2
Joined: 2011-01-11T05:42:15-07:00
Authentication code: 8675308

Imagick class

Post 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.....
Dulfer
Posts: 7
Joined: 2011-01-06T00:43:25-07:00
Authentication code: 8675308

Re: Imagick class

Post by Dulfer »

<?php
system ('php -m', $r);
var_dump($r);
?>
??
indelam
Posts: 2
Joined: 2011-01-11T05:42:15-07:00
Authentication code: 8675308

Re: Imagick class

Post 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...
Dulfer
Posts: 7
Joined: 2011-01-06T00:43:25-07:00
Authentication code: 8675308

Re: Imagick class

Post 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'; 
  }
?> 
Post Reply