Skip to content

Instantly share code, notes, and snippets.

@imghaste
Last active May 30, 2020 23:26
Show Gist options
  • Save imghaste/fe9059a9e1fc8fed9f44c540de599473 to your computer and use it in GitHub Desktop.
Save imghaste/fe9059a9e1fc8fed9f44c540de599473 to your computer and use it in GitHub Desktop.
Convert an image to webp
<!-- Original Image -->
<img src="https://images.imghaste.com/wp-content/uploads/2020/03/webp.caniuse.2020-03-08.jpg" class="img-fluid rounded-top" alt="What is WebP and Why You Should Care about it?" lading="lazy">
<!-- Webp as querystring -->
<img src="https://images.imghaste.com/wp-content/uploads/2020/03/webp.caniuse.2020-03-08.jpg?webp" class="img-fluid rounded-top" alt="What is WebP and Why You Should Care about it?" lading="lazy">
<!-- Webp using System Presets -->
<img src="https://images.imghaste.com/webp=true/wp-content/uploads/2020/03/webp.caniuse.2020-03-08.jpg" class="img-fluid rounded-top" alt="What is WebP and Why You Should Care about it?" lading="lazy">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment