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

Rob*_*ice 10 ruby-on-rails imagemagick heroku edge-detection

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
Run Code Online (Sandbox Code Playgroud)

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

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

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

提前致谢!

V-S*_*SHY 8

// 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
Run Code Online (Sandbox Code Playgroud)


Mag*_*gne 5

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

  • 在https://github.com/ello/heroku-buildpack-imagemagick上有一个较新的版本(6.9.5-10) (2认同)