title: WebP image with C# ImageFormat class
body: <p>I'm downloading in image from web to save it locally. It works great with any other image formats but it this method below fails with an argument exception when I try to read a WebP image.</p>
  
  <pre><code>    private static Image GetImage(string url)
      {
          try
          {
              HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url);
              HttpWebResponse response = (HttpWebResponse)request.GetResponse();
              return Image.FromStream(response.GetResponseStream());
          }
          catch
          {
              return null;
          }
      }
  </code></pre>
  
  <p>How do you read .webp images in C#?
  I found this other question that allows for converting between types but I do not want to do that <a href="https://stackoverflow.com/questions/7566426/webp-library-for-c-sharp">WebP library for C#</a></p>
  
  <p>Reason I'm not wanting to do it is because I think it might lose some quality. Besides, I want to know why is this not working.</p>