Page 1 of 1

class Imagick not found

Posted: 2011-03-30T07:33:17-07:00
by lela
hello everybody

I have a problem with ImageMagick.
I downloaded and installed ImageMagick, but when I try to execute some php code, it doesn't work.

I tried to install ImageMagick in a lot of ways:
1) with installers:
ImageMagick-6.6.9-1-Q16-windows-x64-dll.exe
and later
ImageMagick-6.6.9-1-Q16-windows-x64-static.exe
downloaded form here http://www.imagemagick.org/script/binary-releases.php

2) with PEAR:
I downloaded and installed pear 1.9.2 from here http://pear.php.net/package/PEAR/download
and then tried to launch the command "pear install imagick"

3) I downloaded php_imagick.dll and copied into C:/xampp/php/ext/
and then modified the file php.ini adding the row "extension=php_imagick.dll"

anything works... :(

if I launch this code:

Code: Select all

<?php
system("convert -version");
$image = new Imagick('image.jpg');
?>
in my browser appear:

Code: Select all

[quote]Version: ImageMagick 6.6.9-1 2011-03-28 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC Features: OpenMP 
Fatal error: Class 'Imagick' not found in C:\xampp\htdocs\myapp\index.php on line 75[/quote]
what is wrong?
can somebody help me?
Please I red a lot of different topics in different forums... guidelines, official documentation, but nothing helped me...

this is my configuration:

windows 7 professional x64
xampp 1.7.3
php 5.3.1
apache 2.2.14
pear 1.9.2

Re: class Imagick not found

Posted: 2011-03-30T09:37:01-07:00
by Bonzo
Looks like Imagemagick is installed OK as you had the version returned without an error.

Do you want to use Imagick or are you happy to use php with exec( ) ?

Some examples of Imagemagick with exec( ) on my site along with a couple of Imagick examples.

Looks like Imagick is not installed correctly and could be the .dll file.

Re: class Imagick not found

Posted: 2011-04-05T02:23:43-07:00
by lela
thanks Bonzo,

I'm going to look for informations about the .dll file...