如何在Linux上的xampp中的php GD库中启用Webp支持 [英] How can I Enable Webp support in php GD library in xampp on linux

查看:697
本文介绍了如何在Linux上的xampp中的php GD库中启用Webp支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有用于Linux 7.0.8的XAMPP .

并已启用 GD支持.

phpinfo()的屏幕截图;关于GD

我要使用imagewebp();. 使用此工具时出现错误,

致命错误:未捕获错误:调用未定义函数imagewebp()

在寻找我得出结论的解决方案时,是 http://php的解决方案. net/manual/en/image.installation.php

图像格式|配置交换机

webp |要启用对webp的支持,请添加--with-vpx-dir = DIR.自PHP 5.5起可用.

我要启用webp支持.

我想做什么?

解决方案

我终于想出了一个卸载 XAMPP 应用程序并安装本机 LAMP堆栈服务器的解决方案. /p>

为什么因为我无法在 XAMPP 中重新编译 PHP .会更加困难.

我改用我的本机 Linux Apache/PHP 安装,因此我可以下载源软件包并根据需要重新编译 PHP .

I have XAMPP for Linux 7.0.8.

And enabled with GD Support.

screenshot of phpinfo(); about GD

I want to use imagewebp();. I have error while using this,

Fatal error: Uncaught Error: Call to undefined function imagewebp()

while searching for a solution I have concluded with is solution from http://php.net/manual/en/image.installation.php

Image Format | Configure Switch

webp | To enable support for webp add --with-vpx-dir=DIR . Available as of PHP 5.5.

I want to enable webp support.

What I want to do?

解决方案

I finally came up with a Solution of Uninstalling XAMPP Application and installing Native LAMP stack server.

Why Because I cannot Recompile PHP in XAMPP. It will be more difficult.

I used My native Linux Apache/PHP installation instead, So I can download source packages and recompile PHP to my needs.

这篇关于如何在Linux上的xampp中的php GD库中启用Webp支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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