Zarx Biz
Install Homebrew if not installed on macos
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then you can run
brew install imagemagick
This will take some time and will install the php extension imagemagick.