title: Compressing Images in c# asp.net Core
body: <p>Does anyone know how to compress images of any type (jpg, png, gif, etc.) in c# asp.net core. WebP doesn't work on core. I downloaded the ImageProcessor Core library, but can't figure out how to compress/reduce the quality of the image. Here's what we tried, but it didn't work.</p>
  <pre><code>    newImage.Quality = old_image.Quality-20;
      newImage.HorizontalResolution = 0;
      newImage.VerticalResolution = 0;
  </code></pre>