瀏覽代碼

fix for cover art

Luke Pulverenti 9 年之前
父節點
當前提交
d1195257aa
共有 2 個文件被更改,包括 12 次插入0 次删除
  1. 5 0
      Emby.Drawing/ImageProcessor.cs
  2. 7 0
      MediaBrowser.Controller/Drawing/IImageProcessor.cs

+ 5 - 0
Emby.Drawing/ImageProcessor.cs

@@ -375,6 +375,11 @@ namespace Emby.Drawing
             return GetImageSize(info.Path, info.DateModified, false);
         }
 
+        public ImageSize GetImageSize(string path)
+        {
+            return GetImageSize(path, _fileSystem.GetLastWriteTimeUtc(path), false);
+        }
+
         /// <summary>
         /// Gets the size of the image.
         /// </summary>

+ 7 - 0
MediaBrowser.Controller/Drawing/IImageProcessor.cs

@@ -32,6 +32,13 @@ namespace MediaBrowser.Controller.Drawing
         /// <returns>ImageSize.</returns>
         ImageSize GetImageSize(ItemImageInfo info);
 
+        /// <summary>
+        /// Gets the size of the image.
+        /// </summary>
+        /// <param name="path">The path.</param>
+        /// <returns>ImageSize.</returns>
+        ImageSize GetImageSize(string path);
+        
         /// <summary>
         /// Adds the parts.
         /// </summary>