Convert an WebP image to a jpeg image using imagecreatefromwebp() in PHP
Description
The following code shows how to convert an WebP image to a jpeg image using imagecreatefromwebp().
Example
<?php/*from w w w . j a v a2 s .c o m*/
// Load the WebP file
$im = imagecreatefromwebp('./example.webp');
// Convert it to a jpeg file with 100% quality
imagejpeg($im, './example.jpeg', 100);
imagedestroy($im);
?>