apt install imagemagick code example

Example 1: install imagick php ubuntu

#install imagick
sudo apt-get install php-imagick
#check if installed
php -m | grep imagick
#restart your web server 
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

#Done its easy.
#By Sailendra Chettri.
#Source: https://imagemagick.org/script/install-source.php#unix