aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/ImageProcessor.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-31 03:47:34 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-31 03:47:34 -0400
commit8b7a8ab3963b1a55bc194767cc834c8cf43836a7 (patch)
treea4b27490f4d177090a79404ed89fd63b7fc77a76 /Emby.Drawing/ImageProcessor.cs
parent9c813f9aedb3d4f20ff495fc23693591e7dda914 (diff)
make photos project portable
Diffstat (limited to 'Emby.Drawing/ImageProcessor.cs')
-rw-r--r--Emby.Drawing/ImageProcessor.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs
index 47c9357fd..aa1805871 100644
--- a/Emby.Drawing/ImageProcessor.cs
+++ b/Emby.Drawing/ImageProcessor.cs
@@ -21,6 +21,8 @@ using MediaBrowser.Common.IO;
using MediaBrowser.Controller.IO;
using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Net;
+using TagLib;
+using File = System.IO.File;
namespace Emby.Drawing
{
@@ -578,7 +580,7 @@ namespace Emby.Drawing
{
try
{
- using (var file = TagLib.File.Create(path))
+ using (var file = TagLib.File.Create(new StreamFileAbstraction(Path.GetFileName(path), _fileSystem.OpenRead(path), null)))
{
var image = file as TagLib.Image.File;