I am using AWS EC2 and installed the Imagemagick and php imagick extension using the below steps:
Steps
cd ImageMagick-6.7.8-9
- go where you placed the folder./configure
make
make install
make check
- install imagick extension from pecl.php.net/package/imagick/download 3.1.2
cd imagick-3.1.2
phpize
./configure --with-imagick=/opt/local
make
make install
- Copy imagick.so in your PHP extensions folder and add extension=imagick.so in php.ini
When I run php -m | grep imagick
, I get the below warning:
PHP Warning: Module 'imagick' already loaded in Unknown on line 0
PHP Warning: Module 'imagick' already loaded in Unknown on line 0
imagick
When I run convert -version
, it shows the below message
Version: ImageMagick 6.7.8-9 2016-06-22 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
When I run php -m
, it shows Imagick in the list. But print run phpinfo()
does not show Imagick.
Also when I am trying to create the instance of Imagick it is giving Fatal Error that Class not found.