apt install imagemagick code example
Example 1: install imagick php ubuntu
sudo apt-get install php-imagick
php -m | grep imagick
sudo service apache2 restart
or
sudo service nginx restart
Example 2: ubuntu install imagemagick
Ubuntu : sudo apt install imagemagick
Example 3: how to install imagemagick in linux
Download: https://download.imagemagick.org/ImageMagick/download/ImageMagick.tar.gz
cd ImageMagick-7.0.10
./configure
make
./configure --with-modules
sudo make install
sudo ldconfig /usr/local/lib
make check