
cwebp or libwebp. The requirements are PHP 8.1 or newer and the zlib extension.
photo.jpg.--no-gd flag makes it explicit that GD will not be used. Developers can also request JSON output and use the CLI's exit codes to distinguish a completed conversion, a skipped file and an error.
dwebp is available, additional checks decode the output using libwebp. Checking the result with a separate decoder is useful when implementing a file format.Posted Sep 20, 2026
I built PicoWebP, a pure-PHP WebP encoder for restricted hosting, preserving transparency and colour profiles without GD, Imagick or libwebp.
0
2