浏览代码

Add support for avif and webp for photos (#8857)

Gen R 2 年之前
父节点
当前提交
681be595ce
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Emby.Photos/PhotoProvider.cs

+ 1 - 1
Emby.Photos/PhotoProvider.cs

@@ -27,7 +27,7 @@ namespace Emby.Photos
         private readonly IImageProcessor _imageProcessor;
         private readonly IImageProcessor _imageProcessor;
 
 
         // These are causing taglib to hang
         // These are causing taglib to hang
-        private readonly string[] _includeExtensions = new string[] { ".jpg", ".jpeg", ".png", ".tiff", ".cr2" };
+        private readonly string[] _includeExtensions = new string[] { ".jpg", ".jpeg", ".png", ".tiff", ".cr2", ".webp", ".avif" };
 
 
         /// <summary>
         /// <summary>
         /// Initializes a new instance of the <see cref="PhotoProvider" /> class.
         /// Initializes a new instance of the <see cref="PhotoProvider" /> class.