【发布时间】:2012-03-23 08:29:39
【问题描述】:
我正在使用 Heroku 开发一个应用程序。我需要处理图像,但不幸的是 jpeg 默认不支持。我得到了支持,这是他们的回答:
"We unfortunately don't support jpeg by default. But the good
news is that we open sourced our PHP buildpack, so hopefully the
community will be able to bring that in.
In case you're interested, the buildpack is here:
https://github.com/heroku/heroku-buildpack-php"
我知道我需要在 PHP 的 ./configure 中的 --with-gd 之前添加 --with-jpeg
但是 buildpack 只提供了更新 php.ini 和 compile 文件的能力,并且它们都不包含要更新的魔法行 (./configure... ) ...
有没有办法通过上面提到的两个文件添加jpeg 支持?
【问题讨论】:
-
现在 Heroku 上的 PHP 支持是官方的,并且有一个官方且维护良好的 buildpack,您可以将 ImageMagick 包含在您的composer.json 文件中作为
ext-imagick,或使用ext-gd。