aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/Common/ImageHeader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Drawing/Common/ImageHeader.cs')
-rw-r--r--Emby.Drawing/Common/ImageHeader.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Emby.Drawing/Common/ImageHeader.cs b/Emby.Drawing/Common/ImageHeader.cs
index b5c672a56..c385779a1 100644
--- a/Emby.Drawing/Common/ImageHeader.cs
+++ b/Emby.Drawing/Common/ImageHeader.cs
@@ -4,7 +4,9 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
-using CommonIO;
+using MediaBrowser.Common.IO;
+using MediaBrowser.Controller.IO;
+using MediaBrowser.Model.IO;
namespace Emby.Drawing.Common
{
@@ -46,7 +48,7 @@ namespace Emby.Drawing.Common
/// <exception cref="ArgumentException">The image was of an unrecognised format.</exception>
public static ImageSize GetDimensions(string path, ILogger logger, IFileSystem fileSystem)
{
- using (var fs = File.OpenRead(path))
+ using (var fs = fileSystem.OpenRead(path))
{
using (var binaryReader = new BinaryReader(fs))
{