Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Imagick not found

Hi,

i have a little problem again, this time with imagick:

Fatal error: Class 'Vokuro\Controllers\Phalcon\Image\Adapter\Imagick' not found in

I use the code from the example:

<?php
  $image = new Phalcon\Image\Adapter\Imagick("upload/test.jpg");
  $image->resize(200, 200)->rotate(90)->crop(100, 100);
   if ($image->save()) {
      echo 'success';
   }

Path ImageMagick:

C:\Program Files\ImageMagick-6.8.8-Q16;

Imagick:

imagick module  enabled

php.ini:

extension=php_imagick.dll
extension=php_phalcon.dll

Thx again :-)

Hey, try:

phpinfo();
exit;

Can you see info about imagick here?



17.4k

Hi Nikolay,

thx for reply, yes it is there.

If i check my extensions outside phalcon, it returns an array of gd and imagick, but not inside phalconphp.

            if(extension_loaded('gd')) {
              print_r(gd_info());
           }
         else {
            echo 'GD is not available.';
           }

      if(extension_loaded('imagick')) {
         $imagick = new Imagick();
        print_r($imagick->queryFormats());
      }
       else {
         echo 'ImageMagick is not available.';
    }

Rgds

Stefan



61.1k
Accepted
answer
edited Dec '15

new \Phalcon\Image\Adapter\Imagick not just Phalcon\Image\Adapter\Imagick

new \Phalcon\Image\Adapter\Imagick("upload/test.jpg");


17.4k

Hi Izo,

it is working now, unbelievable :-)

Rgds

Stefan