imagick php 7.4 ubuntu code example
Example: 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