imagick install php7.2 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: Package 'php-imagick' has no installation candidate
RUN apt-get update && apt-get install -y \
libmagickwand-dev --no-install-recommends \
&& pecl install imagick \
&& docker-php-ext-enable imagick