1

我正在使用 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--with-jpeg之前添加--with-gd./configure

但是 buildpack 只提供了更新php.ini编译文件的能力,而且它们都不包含要更新的魔法线 (./configure...) ...

有没有办法jpeg通过提到的两个文件添加支持?

4

1 回答 1

3

当前的解决方法是安装imagick.so- 已编译库和指令@github https://github.com/alkhoo/heroku-cedar-php-extension

apc.so由于 Heroku 的扩展中缺少它,因此也已编译。gd.so由于 Heroku 的 PHP 已将 GD 编译为 php* 二进制文件,因此无法使用该扩展。等待有人创建没有 GD 编译的 PHP buildpack。

其他人已经编译zlib.sombstring.so(以防有人感兴趣)。

于 2012-06-22T20:50:26.893 回答