heroku buildpacks:add https://github.com/thomasgallagher/heroku-buildpack-imagemagick --index 1
You can also add this via Settings > Buildpacks on the Heroku dashboard
Optional: Fork this repo and replace the above URL to make it your own:
https://github.com/thomasgallagher/heroku-buildpack-imagemagick