Run these commands to install ImageMagick extension for PHP on MacOs:
- brew install imagemagick
- pecl install imagick
- Restart PHP brew services restart php
You may need to check if imagick is loaded in your php.ini file. Run php -m | grep -i imagick to see if the module is activated.