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.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Drawing/Common/ImageHeader.cs b/Emby.Drawing/Common/ImageHeader.cs
index 45a8f0d47..c385779a1 100644
--- a/Emby.Drawing/Common/ImageHeader.cs
+++ b/Emby.Drawing/Common/ImageHeader.cs
@@ -48,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))
{