aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/ImageProcessor.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-06-24 14:29:23 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-06-24 14:29:23 -0400
commitbcaf9bd19ce4d199cf20315fd486e3a297e1ff1f (patch)
treee5d0315c340ba6251de88ed419cd94c51d68405c /Emby.Drawing/ImageProcessor.cs
parent023952d04df3765ee5574915f0a84903bb97a748 (diff)
add skia error handling
Diffstat (limited to 'Emby.Drawing/ImageProcessor.cs')
-rw-r--r--Emby.Drawing/ImageProcessor.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs
index eb5e0d82a..be4591223 100644
--- a/Emby.Drawing/ImageProcessor.cs
+++ b/Emby.Drawing/ImageProcessor.cs
@@ -410,6 +410,11 @@ namespace Emby.Drawing
return GetCachePath(ResizedImageCachePath, filename, "." + format.ToString().ToLower());
}
+ public ImageSize GetImageSize(ItemImageInfo info, bool allowSlowMethods)
+ {
+ return GetImageSize(info.Path, info.DateModified, allowSlowMethods);
+ }
+
public ImageSize GetImageSize(ItemImageInfo info)
{
return GetImageSize(info.Path, info.DateModified, false);