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

1

4 Answers 4

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!!!

2
  • imagick is installed, you have screenshot above. i set imagemagick on magento settings Commented Aug 28, 2019 at 11:17
  • Have you tried ADVANCED → Developer → Image Processing Settings → Image Adapter configuration option (PHP GD2) this?
    – Sumit
    Commented Aug 28, 2019 at 11:19
2

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

sudo apt install php7.4-imagick
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
1
  • imagick is installed, you have screenshot above. i set imagemagick on magento settings Commented Aug 28, 2019 at 11:17
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.