PasteIntoFile icon indicating copy to clipboard operation
PasteIntoFile copied to clipboard

Add support for WebP image format

Open eltos opened this issue 8 months ago • 0 comments

For example, you could use the SkiaSharp.Views.Desktop.Common package like this:

using var skImage = image.ToSKImage();
using var skData = skImage.Encode(SkiaSharp.SKEncodedImageFormat.Webp, 90);
using var file = File.OpenWrite(filename);
skData.SaveTo(file);

See https://stackoverflow.com/a/76027832

eltos avatar Apr 16 '25 21:04 eltos