php - Fatal error: Class 'imagick' not found -


i trying install imagemagic php extension under wampserver 2.

  • i've downloaded , installed imagemagick . i've chosen imagemagick-6.8.8-10-q16-x86-dll.exe

  • i've downloaded php extension.

  • i've moved dll extension downloaded c:\wamp\bin\php\php5.4.16\ext\

  • i've altered php.ini (accessed through wamp tray icon > right-click > php > php.ini) , added "extension=php_imagick.dll", without quotes, extensions lists.

  • i restarted apache. not noticing extension displayed on php extensions list tray icon, restarted wampserver. imagemagick extensions shows enabled on list.

however, cannot use it. doing quick test returns "fatal error: class 'imagick' not found". in phpinfo() shows imagemagick has been added env variables.

when try test imagick :

$im = new imagick( 'test.jpg' ); // resize 200 width , keep ratio $im->thumbnailimage( 200, 0);  // write disk $im->writeimage( 'test_thumbnail.jpg' ); 

i error:fatal error: class 'imagick' not found doing wrong? i'm working win7 32 bit, phph 5-4-16 , apache2

  • try: php -m | grep imagick.
  • if result empty do: sudo apt-get remove --purge php5-imagick && sudo apt-get install php5-imagick

regards


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -