Browse Source

Add SVG to transparent image types (#14160)

theguymadmax 1 week ago
parent
commit
41b9eb8c0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Jellyfin.Drawing/ImageProcessor.cs

+ 1 - 1
src/Jellyfin.Drawing/ImageProcessor.cs

@@ -34,7 +34,7 @@ public sealed class ImageProcessor : IImageProcessor, IDisposable
     private const char Version = '3';
 
     private static readonly HashSet<string> _transparentImageTypes
-        = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { ".png", ".webp", ".gif" };
+        = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { ".png", ".webp", ".gif", ".svg" };
 
     private readonly ILogger<ImageProcessor> _logger;
     private readonly IFileSystem _fileSystem;