Hi, we're trying to see if it's possible to enable WebP support for the ImageMagick library (Imagick module) in PHP 7.4? We have a dedicated server running CloudLinux 7.9 and WHM v92.0.11.
We had our server admin team recently add an EasyApache 4 version of PHP 7.4 for us to assign to certain users, and along with that we had them install and enable ImageMagick. So we are now showing PHP 7.4.15, Imagick module 3.4.4, and ImageMagick 6.9.10-68 Q16. BUT, under supported formats, WebP is not listed as one of the many options. We need this option to allow ImageMagick to convert images to WebP format in some WordPress sites.
We are aware that the GD library does have WebP support, but it lacks a few more advanced features that ImageMagick has to get better quality image resizing & optimizing that WordPress does on all uploaded images.
We contacted our server admins about adding WebP support with the libwebp library but were informed that this was not possible with newer versions of PHP due to cPanel limitations.
- Is it true that ImageMagick cannot be compiled to support WebP currently for PHP 7.4 on a WHM/cPanel server?
- Is it possible to get the cwebp tool added to PHP 7.4, along with libwebp, and try that system if ImageMagick cannot be updated at this point?
Thanks for any insight here! We'd love to not have to use outside resources to convert images to WebP on sites when the feature 'should' be supported by the tool that is already doing all of the resizing of thumbnails by default when images are uploaded.
We had our server admin team recently add an EasyApache 4 version of PHP 7.4 for us to assign to certain users, and along with that we had them install and enable ImageMagick. So we are now showing PHP 7.4.15, Imagick module 3.4.4, and ImageMagick 6.9.10-68 Q16. BUT, under supported formats, WebP is not listed as one of the many options. We need this option to allow ImageMagick to convert images to WebP format in some WordPress sites.
We are aware that the GD library does have WebP support, but it lacks a few more advanced features that ImageMagick has to get better quality image resizing & optimizing that WordPress does on all uploaded images.
We contacted our server admins about adding WebP support with the libwebp library but were informed that this was not possible with newer versions of PHP due to cPanel limitations.
- Is it true that ImageMagick cannot be compiled to support WebP currently for PHP 7.4 on a WHM/cPanel server?
- Is it possible to get the cwebp tool added to PHP 7.4, along with libwebp, and try that system if ImageMagick cannot be updated at this point?
Thanks for any insight here! We'd love to not have to use outside resources to convert images to WebP on sites when the feature 'should' be supported by the tool that is already doing all of the resizing of thumbnails by default when images are uploaded.
Last edited by a moderator: