2015-02-10 69 views
9

的Heroku雪松-14堆栈目前运行的版本的ImageMagick(6.7.7-10)的是近岁:如何在Heroku上使用Imagemagick的最新版本?

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中引入的。

为ImageMagick的在Heroku上唯一可用的buildpack不雪松14堆栈上运行: https://github.com/mcollina/heroku-buildpack-imagemagick

有没有一种方法,我可以用ImageMagick的v6.8.9-0或更高版本在Heroku?

在此先感谢!

+0

你找到了一个解决方案? – Magne 2015-04-08 10:58:24

+0

不,我没有......现在再看一遍。你有没有找到有用的东西? – 2015-04-13 00:38:09

回答

5

下面是使用至少ImageMagick的6.8在Heroku与雪松-14叠一个潜在的选择:https://github.com/ello/heroku-buildpack-imagemagick-cedar-14

+0

我认为这可能工作!我还有一两个星期没有部署,但会放弃这一步。谢谢。 – 2015-04-15 08:43:20

+1

有更新的版本(6.9.5-10),在https://github.com/ello/heroku-buildpack-imagemagick – Jason 2017-05-10 15:47:25

+0

不幸的是,阅读我没有提供什么建议。任何人都可以提供一步一步的白痴指导如何在Heroku上升级ImageMagick - 我在制作过程中遇到了大量的翻译错误,这些错误在我的开发环境中没有看到。 – 2017-08-22 15:23:19

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 
+0

在一年后即将到来,但我不能说buildpack/heroku尊重你正在设置的IMAGE_MAGICK_VERSION。试图让imagemagick到7.0.1-1,并不能得到任何东西坚持。你有什么问题吗? – Datise 2017-06-12 19:26:18

+1

@Datise参考buildpack的repo提交,它只支持到版本6.9.5-10 – 2017-06-13 07:37:00

+0

不幸的是,谢谢你的回复 – Datise 2017-06-29 18:24:52

相关问题