如何在 Heroku 上使用最新版本的 Imagemagick?

How can I use the latest version of Imagemagick on Heroku?

Heroku Cedar-14 堆栈当前运行的是将近一年的 ImageMagick (6.7.7-10) 版本:

Running `identify -version` attached to terminal... up, run.8227
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP

我想使用 -canny 选项在图像中执行边缘检测,但这只是在更高版本的 ImageMagick 中引入的。

Heroku 上 ImageMagick 的唯一可用构建包在 Cedar-14 堆栈上不起作用: https://github.com/mcollina/heroku-buildpack-imagemagick

有没有办法在 Heroku 上使用 ImageMagick v6.8.9-0 或更高版本?

提前致谢!

这是一个在 Heroku 上至少使用 ImageMagick 6.8 和 Cedar-14 堆栈的潜在选项:https://github.com/ello/heroku-buildpack-imagemagick-cedar-14

// check image magick version
heroku run identify -version
heroku config:add IMAGE_MAGICK_VERSION="6.9.3-8"
// if you set buildpacks then your original buildpacks lost
heroku buildpacks:add --index 1 https://github.com/ello/heroku-buildpack-imagemagick.git
// commit
git push heroku master
heroku run identify -version