I have installed the Magento 2 project and I want to run the catalog:image:resize
command and our project image processing config is set to imagic(not php GD).
Admin -> Stores -> Configuration -> Advanced -> Developer -> Image Processing Settings : imagic
I am using brew tap shivammathur/php
to use the old php version with a brew package manager.
https://github.com/shivammathur/homebrew-php#install-php
I have followed this tutorial to install the required packages to use Imagic.
https://ma.ttias.be/install-phps-imagick-extension-on-mac-with-brew/
I have also verified php module list using php -m | grep -i magic
imagic is installed but php-imagic is not found.
But I found this file while running this command grep -rni "imagic" /usr/local/Cellar/[email protected]/7.4.33_4/
/usr/local/Cellar/[email protected]/7.4.33_4/include/php/ext/imagick/php_imagick_shared.h
I have run brew install php7.4-imagick
and restart php. Then I have run brew install shivammathur/php/[email protected]
.
I have try many commnad like brew install php74-imagick
and also search package for php74 but not found any usefull using brew search imagick
this command.
Then I have run these command in sequence and it worked.
brew install imagemagick
brew install pkg-config
pecl install imagick
brew services restart [email protected]
Thank you.