PHP.nl

imagecreatefromwebp

imagecreatefromwebp

gd.image.new

 **imagecreatefromwebp** string $filename
returns an image identifier

representing the image obtained from the given filename. Note that animated WebP files cannot be read. imagecreatefromwebp

filenamePath to the WebP image.

gd.return.identifier

**Voorbeeld: Convert an WebP image to a jpeg image using **

<?php
// Load the WebP file
$im = imagecreatefromwebp('./example.webp');

// Convert it to a jpeg file with 100% quality
imagejpeg($im, './example.jpeg', 100);
?>