I recently converted from macports to homebrew and my previous macports Imagemagick install was working fine. I followed the homebrew instructions to chown /usr/local (somewhat
Andrei, your solution got me in the right direction.
but it was a
brew install --force jpeg brew install --force imagemagick
that got it working for me.