title: Convert a JPG or PNG to WebP in C# .NET 6
body: <p>I am working in a .NET 6 application. I am already aware of the <a href="https://stackoverflow.com/questions/54136197/how-to-convert-jpg-to-webp-in-c-sharp">following answer</a>, but I was looking for a solution where I wouldn't have to install <code>.dll</code> and manually include it in my project.</p>
  <p>That answer is from 2019, and I was wondering if there's a better, easier way of converting a <code>.jpg</code> or <code>.png</code> to <code>.webp</code>.</p>
  <p>The user is uploading an image file <code>IFormFile</code> and I am using ImageSharp to process the image (e.g. re-size it ...etc)</p>
  <pre><code>Image standardImage = Image.Load(file.OpenReadStream());
  standardImage.Mutate(x =&gt; x.Resize(300, 300));
  </code></pre>
  <p>Before uploading the image to S3, I want to convert it to <code>.webp</code>. Is there a better way than the answer linked above?</p>