aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Emby.Drawing/ImageProcessor.cs5
-rw-r--r--MediaBrowser.Controller/Drawing/IImageProcessor.cs7
2 files changed, 12 insertions, 0 deletions
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs
index 30a8334d2..8ceec8529 100644
--- a/Emby.Drawing/ImageProcessor.cs
+++ b/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>
diff --git a/MediaBrowser.Controller/Drawing/IImageProcessor.cs b/MediaBrowser.Controller/Drawing/IImageProcessor.cs
index 838dfc9fb..fea6b979d 100644
--- a/MediaBrowser.Controller/Drawing/IImageProcessor.cs
+++ b/MediaBrowser.Controller/Drawing/IImageProcessor.cs
@@ -33,6 +33,13 @@ namespace MediaBrowser.Controller.Drawing
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>
/// <param name="enhancers">The enhancers.</param>