How To Install ImageMagick and PHP Imagick on CentOS 8 / RHEL 8 Mar 14, 2020 Raj 2 min read CONTENTS Enable EPEL Repository Install ImageMagick Install PHP Imagick Validate PHP Imagick Conclusion SHARE ImageMagick is an open-source software suite for creating, editing, converting, and modifying bitmap images. With ImageMagick, you can read and write over 200 image formats, including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Apart from providing a graphical interface for working with images, it also provides commands to resize an image, blur, crop, draw on, flip, join, re-sample, and much more. PHP Imagick is a PHP extension by which you can call ImageMagick API to modify images. Here, we will see how to install ImageMagick and PHP Imagick on CentOS 8 / RHEL 8. Enable EPEL Repository ImageMagick packages are available in the EPEL repository for CentOS 8 / RHEL 8. So, follow the link to enable the EPEL repository. READ: How To Enable EPEL repository on CentOS 8 / RHEL 8 OR Run the below commands to enable the EPEL repository. ### CentOS 8 ### dnf install -y epel-release dnf config-manager --set-enabled PowerTools ### RHEL 8 ### dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm ARCH=$( /bin/arch ) subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms" Install ImageMagick Once you have enabled the EPEL repository, install ImageMagick with dnf command. dnf install -y ImageMagick ImageMagick-devel Install PHP Imagick PHP Imagick is a native PHP extension to create and modify bitmap images using the ImageMagick API. Install PHP, PHP development, and PHP Pear, which helps to install and manage PHP extensions. dnf install -y php php-devel php-pear make Now, install PHP Imagick with pecl command. pecl install imagick Add the extension into the php.ini file. echo "extension=imagick.so" > /etc/php.d/20-imagick.ini Restart the Apache web service to take an effect of newly installed PHP extension. systemctl restart httpd Validate PHP Imagick List the complied modules to see if PHP Imagick is installed and available. php -m Output: . . . . . . gettext hash iconv imagick libxml openssl . . . . . . Additionally, you can check the PHP modules details from PHPInfo. PHP Imagick Extension Conclusion That’s All. I hope you have learned how to install ImageMagick and PHP Imagick on CentOS 8 / RHEL 8. centos-8 rhel-8 php imagemagick Prev Post How To Install Apache Maven on Debian 10 / Debian 9 Next Post How To Install Icinga 2 on CentOS 8 / RHEL 8 RELATED POSTS How To Install Pip on CentOS 8 / RHEL 8 How to Install Ruby on Rails on CentOS 8 / RHEL 8 How To Install MongoDB On CentOS 8 / RHEL 8 How To Install Graylog on CentOS 8 / RHEL 8 Please enable JavaScript to view the comments powered by Disqus. comments powered by Disqus RECENT POSTS How To Install VirtualBox On Linux Mint 20 How To Backup and Restore Ubuntu & Linux Mint With Timeshift How To Upgrade To Linux Mint 20 From Linux Mint 19 [Detailed Guide] How To Install KVM On Ubuntu 20.04 / Linux Mint 20 How To Install Plex Media Server On Ubuntu 20.04 / Linux Mint 20 How To Install Android Studio on Ubuntu 20.04 TOP POSTS Install xrdp on CentOS 7 / RHEL 7 Install Gnome GUI on CentOS 7 / RHEL 7 Change default network name (ens33) to old “eth0” on Ubuntu… Install μTorrent (uTorrent) on Ubuntu 14.04 How To Configure High-Availability Cluster on CentOS 7 /… How To Install and Configure VNC Server in CentOS 7 / RHEL 7