Write WebP
Reads image in JPEG format and saves to WebP format.
Сode Snippet
using (var bitmap = new Bitmap("Chicago.jpg"))
{
var webPSettings = new WebPSettings(100);
bitmap.Save("WriteWebP.webp", webPSettings);
}
Input
Chicago.jpg
Output
WriteWebP.webp
For AI-assisted development: Download Graphics Mill Code Samples XML Catalog