What is ImageMagick?
ImageMagick (imagick) is software designed to display, convert, and edit raster and vector images. It can be leveraged with PHP by installing the ImageMagick PHP extension on cPanel servers.
Step 1: Install ImageMagick
Login in as root user and run below command on your terminal.
/opt/cpanel/ea-php74/root/usr/bin/pecl install imagick
Just change that PHP version in the command to the specific version you're working with.
Note: Php popen() extension must be disabled before proceed this installation in your php-74.ini file.