Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何向Heroku PHP buildpack添加jpeg支持_Php_Heroku_Gd_Php Ini - Fatal编程技术网

如何向Heroku PHP buildpack添加jpeg支持

如何向Heroku PHP buildpack添加jpeg支持,php,heroku,gd,php-ini,Php,Heroku,Gd,Php Ini,我正在使用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 inte

我正在使用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
中的
/gd>之前添加
——使用jpeg

但是buildpack只提供了更新php.ini和编译文件的功能,并且没有一个包含要更新的魔行(./configure…)


有没有办法通过上述两个文件添加
jpeg
支持?

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

还编译了
apc.so
,因为它在Heroku的扩展中丢失了。无法使用
gd.so
扩展名,因为Heroku的PHP使用PHP*二进制文件编译了gd。正在等待有人在未编译GD的情况下创建PHP buildpack


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

既然Heroku上的PHP支持是官方的,并且有一个官方的、维护良好的buildpack,那么您可以将ImageMagick作为
ext-imagick
包含在文件中,或者使用
ext-gd