繁体   English   中英

如何在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或更高版本?

提前致谢!

// 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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM