class Imagick not found

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
lela
Posts: 2
Joined: 2011-03-30T03:26:37-07:00
Authentication code: 8675308

class Imagick not found

Post 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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: class Imagick not found

Post 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.
lela
Posts: 2
Joined: 2011-03-30T03:26:37-07:00
Authentication code: 8675308

Re: class Imagick not found

Post by lela »

thanks Bonzo,

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