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.....
Imagick class
Re: Imagick class
<?php
system ('php -m', $r);
var_dump($r);
?>
??
system ('php -m', $r);
var_dump($r);
?>
??
Re: Imagick class
This gives me int(255)Dulfer wrote:<?php
system ('php -m', $r);
var_dump($r);
?>
??
I need this to create a thumbnail of pdf's first page i see Imagick is the only solution...
Re: Imagick class
Sorry
path - full
examle - '/usr/local/bin/php -m'
or do it
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';
}
?>