Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abenevaut/4431cee4f6b7e94d61081265f56bf80f to your computer and use it in GitHub Desktop.
Save abenevaut/4431cee4f6b7e94d61081265f56bf80f to your computer and use it in GitHub Desktop.
<?php
$image = imagecreatefromjpeg('example.jpg');
imagewebp($image, 'example.webp');
imagedestroy($image);
@abenevaut
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment