owais latif
owais latif

Reputation: 61

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

Upvotes: 0

Views: 2830

Answers (1)

Jignesh Joisar
Jignesh Joisar

Reputation: 15085

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

Upvotes: 2

Related Questions