Skip to content

Instantly share code, notes, and snippets.

@kszyrvercobrador
Created June 19, 2020 12:25
Show Gist options
  • Save kszyrvercobrador/5ab133671172b04e66d040551d88af19 to your computer and use it in GitHub Desktop.
Save kszyrvercobrador/5ab133671172b04e66d040551d88af19 to your computer and use it in GitHub Desktop.
How to install imagemagick and php ext on mac

First, install pkg-config and imagemagick itself

brew install pkg-config imagemagick

Next up, use pecl to get the PHP extension compiled.

pecl install imagick

It will also auto-register itself in your php.ini and should now be available.

php -m | grep -i magic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment