php - Install HEIC Supported imagick extension in cpanel

I have installed and tested php native imagick extension locally. Module version is 3.7.0. it support HEIC. But within the cPanel, I have installed it through PECL installer. Same version installed but it's not supported HEIC format.

PHP version - 8.0 OS - CentOS v7.9.2009 STANDARD xen hvm Cpanel version - 106.0.10

I have root access and terminal access in amazon LightSail instance.

I removed old imagick version and installed it again through remi repository. But the result was same. I want to install HEIC supported PHP imagick extension to the server.

Answer

Solution:

I removed old imagick version and installed it again through remi repository. But the result was same. I want to install HEIC supported PHP imagick extension to the server.

Using remi repository, HEIC support comes from ImageMagick in the "heic" optional sub-package.

You need to install, for new version 7:

  • php-pecl-imagick-im7
  • ImageMagick7-libs, required by previous
  • ImageMagick7-heic
  • libheif, from RPMfusion, required by previous

Or (for old version 6)

  • php-pecl-imagick-im6
  • ImageMagick6-libs, required by previous
  • ImageMagick6-heic
  • libheif, from RPMfusion, required by previous

Also read:

And for a proper repository configuration / usage, follow the wizard instructions

Source