【问题标题】:Enable webp in php 7 without recompiling在 php 7 中启用 webp 而无需重新编译
【发布时间】:2021-11-09 16:00:41
【问题描述】:

是否可以在不重新编译 php 的情况下在 debian(使用 nginx)上的 PHP 7.4 中启用 gd webp 支持?我找到的所有解决方案都使用 --with-webp-dir 参数重新编译 PHP7。

【问题讨论】:

  • 那么为什么那个解决方案对你没有好处

标签: php gd webp


【解决方案1】:

你可以做到。在您的服务器上保存一个图像文件,然后将其转换为 WebP。

见:How to Enable WebP support Php 7 without Recompiling?

我同意,它并不完美,但非常接近。

【讨论】:

    猜你喜欢
    • 2016-08-22
    • 2014-05-12
    • 1970-01-01
    • 1970-01-01
    • 2020-04-27
    • 2012-05-31
    • 2015-07-21
    • 2011-07-11
    • 1970-01-01
    相关资源
    最近更新 更多