简体   繁体   中英

Imagemagick not working in linux + ubuntu

I have installed imageMagick in ubuntu server i have installed imagemagick but i can not found it in info.php

<?php 

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);


$src_img = new Imagick("images/insurance.jpg");
echo $src_img;

?>

it can not find Imagick class

Fatal error: Class 'Imagick' not found in /var/www/html/new_details.php on line 570

try to use

php -m | grep imagick 

if result is null(empty) then run this command

sudo apt-get install php-imagick

and restart the apache2 server

sudo service apache2 restart

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM