diff options
| author | Cody Robibero <cody@robibe.ro> | 2024-02-28 09:56:02 -0700 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2024-02-28 09:56:02 -0700 |
| commit | c5e723bccd723c4c08b7239c5205085be00bd10d (patch) | |
| tree | d653c6b579ceb8e1a9087f9d6a9347228d23f9d1 /MediaBrowser.Model/Drawing/ImageFormatExtensions.cs | |
| parent | 4f0f364ac941dc4a856512c9bf0e6b93fdf7b3ab (diff) | |
Add support for converting from svg to other image types
Diffstat (limited to 'MediaBrowser.Model/Drawing/ImageFormatExtensions.cs')
| -rw-r--r-- | MediaBrowser.Model/Drawing/ImageFormatExtensions.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Drawing/ImageFormatExtensions.cs b/MediaBrowser.Model/Drawing/ImageFormatExtensions.cs index 1bb24112e..1c60ba460 100644 --- a/MediaBrowser.Model/Drawing/ImageFormatExtensions.cs +++ b/MediaBrowser.Model/Drawing/ImageFormatExtensions.cs @@ -22,6 +22,7 @@ public static class ImageFormatExtensions ImageFormat.Jpg => MediaTypeNames.Image.Jpeg, ImageFormat.Png => "image/png", ImageFormat.Webp => "image/webp", + ImageFormat.Svg => "image/svg+xml", _ => throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(ImageFormat)) }; @@ -39,6 +40,7 @@ public static class ImageFormatExtensions ImageFormat.Jpg => ".jpg", ImageFormat.Png => ".png", ImageFormat.Webp => ".webp", + ImageFormat.Svg => ".svg", _ => throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(ImageFormat)) }; } |
