Imagewebp
Imagewebp is a function in PHP’s GD graphics library that outputs or saves an image in the WebP format. WebP is an image format developed by Google that supports both lossy and lossless compression, as well as transparency in certain modes. WebP often yields smaller file sizes than JPEG or PNG for comparable quality, making it a popular choice for web delivery.
Usage and behavior: The function requires the GD extension with WebP support enabled in PHP. It accepts
Return value: The function returns TRUE on success and FALSE on failure.
Notes: On servers where GD is built without WebP support, imagewebp will not operate. Check phpinfo() or