diff --git a/src/Avalonia.Base/Platform/Storage/FilePickerFileTypes.cs b/src/Avalonia.Base/Platform/Storage/FilePickerFileTypes.cs index 9c712a648b..d735d1dae2 100644 --- a/src/Avalonia.Base/Platform/Storage/FilePickerFileTypes.cs +++ b/src/Avalonia.Base/Platform/Storage/FilePickerFileTypes.cs @@ -21,7 +21,7 @@ public static class FilePickerFileTypes public static FilePickerFileType ImageAll { get; } = new("All Images") { - Patterns = new[] { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.bmp" }, + Patterns = new[] { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.bmp", "*.webp" }, AppleUniformTypeIdentifiers = new[] { "public.image" }, MimeTypes = new[] { "image/*" } }; @@ -40,6 +40,13 @@ public static class FilePickerFileTypes MimeTypes = new[] { "image/png" } }; + public static FilePickerFileType ImageWebp { get; } = new("WebP image") + { + Patterns = new[] { "*.webp" }, + AppleUniformTypeIdentifiers = new[] { "org.webmproject.webp" }, + MimeTypes = new[] { "image/webp" } + }; + public static FilePickerFileType Pdf { get; } = new("PDF document") { Patterns = new[] { "*.pdf" },