4

Magento 2.3.2 when I set image adapter for ImageMagick images on front-end not load Shows placeholder.

When I run

bin/magento catalog:image:resize 

it says Required PHP extension Imagick was not loaded.

imagemagick extension is loaded

Waqar Ali
  • 2,319
  • 16
  • 44

4 Answers4

2

To fix it, set the PHP GD2 value for the

ADVANCED → Developer → Image Processing Settings → Image Adapter configuration option

Also, if imagick is not installed on your server then install it with the below command

sudo yum install php7-imagick

Hope it helps!!!

Sumit
  • 4,875
  • 2
  • 19
  • 35
2

Make sure to install the package for the right PHP version. For PHP 7.4 on Ubuntu:

sudo apt install php7.4-imagick
Edd
  • 141
  • 4
0

You need to install the PHP imagick module on your server, for CentOS you should be able to use:

sudo yum install php7-imagick

To install the module.

If that doesn't work, you can follow: https://www.scalescale.com/tips/nginx/install-imagemagick-php-imagick-centos/

Installing on CentOS 6: https://www.vultr.com/docs/install-imagemagick-on-centos-6

for ubantu

sudo apt-get install php-imagick
Anas Mansuri
  • 2,627
  • 1
  • 11
  • 28
0

In my case, the other solution did not work but this one. So you could try ones if it works for you. My OS is Ubuntu 22.04.

To install Imagick run bellow command:

sudo apt-get install php-imagick

For specific PHP version (in my case 7.1):

sudo apt-get install php8.2-imagick

Then restart apache:

sudo sudo systemctl restart nginx php8.2-fpm

To check if the extension has been installed:

php -m | grep imagick

Screenshort of the command

Rafiqul Islam
  • 471
  • 4
  • 8