Search code examples
phpgdwebp

Enable webp in php 7 without recompiling


Is it possible to enable gd webp support in PHP 7.4 on debian (with nginx) without recompiling php? All solutions I found recompile PHP7 with the --with-webp-dir param.


Solution

  • You can sort of do it. Save an image file on your server, and then convert it to WebP.

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

    I agree, it is not perfect, but quite close.