我如何将jpeg支持添加到Heroku PHP buildpack中 [英] How can I add jpeg support to Heroku PHP buildpack

查看:98
本文介绍了我如何将jpeg支持添加到Heroku PHP buildpack中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Heroku开发应用程序。我将需要操作图像,但不幸的是默认情况下不支持 jpeg 。我接受了支持,这里是他们的回答:

 我们不幸的是默认不支持jpeg,但是好的
的消息是我们开源了我们的PHP buildpack,所以希望
社区能够把它带入。

如果你有兴趣,buildpack在这里:
https://github.com/heroku/heroku-buildpack-php

我知道我需要在 - with-gd 之前添加 - with-jpeg ./configure of PHP



但buildpack只能够更新 php.ini compile 文件,并且它们都不包含更新的魔术线(./configure ...)...

是否有添加方法 jpeg 通过两个文件提供支持?

解决方案

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

还编译了 apc.so ,因为它在Heroku的扩展中丢失了。由于Heroku的PHP已经在php * binary中编译了GD,因此 gd.so 扩展名无法使用。等待别人创建一个没有GD编译的PHP buildpack。



其他人编译 zlib.so mbstring.so (如果有人感兴趣)。

I am developping an app using Heroku. I will need to manipulate images but unfortunately jpeg is not supported by default. I spoke with support and here is their answer:

"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"

I know I need to add --with-jpeg just before the --with-gd in the ./configure of PHP

But the buildpack only gives the ability to update the php.ini and compile files and none of them contains the magic line to update (./configure...) ...

Is there is a way to add jpeg support through the two mentioned files ?

解决方案

Current workaround is to install imagick.so - have compiled the library and instruction @ github https://github.com/alkhoo/heroku-cedar-php-extension

Also compiled apc.so since it is missing from Heroku's extension. The gd.so extension cannot be used since Heroku's PHP had GD compiled in php* binary. Waiting for someone to create a PHP buildpack without GD compiled.

Others have compiled zlib.so and mbstring.so (in case anyone is interested).

这篇关于我如何将jpeg支持添加到Heroku PHP buildpack中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆