【问题标题】:How can I use the latest version of Imagemagick on Heroku?如何在 Heroku 上使用最新版本的 Imagemagick?
【发布时间】:2015-04-09 23:38:53
【问题描述】:

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

提前致谢!

【问题讨论】:

  • 您找到解决方案了吗?
  • 不,我没有……现在只是再看一遍。你有没有发现什么有用的东西?
  • @Robd'Apice 你能在 rails 和 heroku 中转换 heic 图像吗?

标签: ruby-on-rails heroku imagemagick edge-detection


【解决方案1】:
// 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

【讨论】:

【解决方案2】:

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

【讨论】:

  • 我认为这可能有效!我还有一两个星期的时间来部署,但会试一试。谢谢。
  • 有一个更新的版本(6.9.5-10),在github.com/ello/heroku-buildpack-imagemagick
  • 不幸的是,自述文件没有提供关于做什么的建议。任何人都可以为如何在 Heroku 上升级 ImageMagick 提供一步一步的白痴指南 - 我在 prod 中遇到了很多我在开发环境中看不到的翻译错误。
  • 这可能会为您指明正确的方向:github.com/thoughtbot/paperclip/wiki/…
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-18
  • 1970-01-01
  • 1970-01-01
  • 2021-04-04
  • 1970-01-01
  • 2020-12-07
相关资源
最近更新 更多