Skip to content

Instantly share code, notes, and snippets.

@scottpham
Created August 5, 2022 21:41
Show Gist options
  • Save scottpham/084425ba4fd4774f72afe6a661152385 to your computer and use it in GitHub Desktop.
Save scottpham/084425ba4fd4774f72afe6a661152385 to your computer and use it in GitHub Desktop.
How to install image magick for pdf plumber

The Magic Wand Library doesn't work yet (as of 08/05/2022) with ImageMagick7. Download 6 via homebrew:

brew install imagemagick@6

It's not enough just to link. Find the executables by searching brew --prefix. It'll be in Cellar.

Grab the main directory of the whole package and write to zshrc

export MAGICK_HOME=/opt/homebrew/Cellar/imagemagick@6/6.9.12-60

Search the lib folder in the package and find the dyld files. These are shared libraries. List the suffices for LibMagickWand*.dylib explicitly in an environment variable:

export WAND_MAGICK_LIBRARY_SUFFIX="-6.Q16;-6.Q16.7

Add the bin to path:

export PATH=$PATH:$MAGICK_HOME/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment