I am trying to enable WebP support for GD through WHM.
Currently I am getting version 2.1.0 (2.5.5 is stable) and when I check PHP info WebP support is not enabled.
Can I enable this using WHM?
I am not experienced with servers and I am using WHM settings.
2
Answers
PHP needs to be compiled to support it.
https://www.php.net/manual/en/image.installation.php
Of course, your server will also need either libvpx or libwebp installed.
Instead of recompiling PHP, you can use the official WebP package to generate WebP images. Just download the package depending on your server OS. Extract it and upload it to public_html folder. Using shell_exec command you can generate WebP images from png, jpg etc. No root access or package needs to install. For more information follow the tutorial on enable-webp-support-php-7. Hope it help.