1、安装
brew install imagemagick
2、查看可执行文件位置
which imagemagick
3、将位置添加到系统变量
vim ~/.bash_profile
export MAGICK_HOME=/opt/homebrew/bin
source ~/.bash_profile
brew install imagemagick
which imagemagick
vim ~/.bash_profile
export MAGICK_HOME=/opt/homebrew/bin
source ~/.bash_profile