1
我正在開發一個使用Heroku的應用程序。我將需要操作圖像,但不幸的是默認情況下不支持jpeg
。我支持講,這裏是他們的回答:如何添加jpeg支持Heroku PHP buildpack
"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和編譯文件,其中沒有包含魔線更新時(./configure ...)...
有沒有一種方法可以添加jpeg
支持通過上面提到的兩個文件?
現在,Heroku上的PHP支持是官方的,並且有一個官方且維護良好的buildpack,您可以將ImageMagick包含在[composer.json](https://github.com/delight-im/Heroku-PHP -Apache2/blob/master/composer.json)文件作爲'ext-imagick',或使用'ext-gd'。 – caw 2014-07-05 00:46:06