make photos project portable

This commit is contained in:
Luke Pulverenti
2016-10-31 03:47:34 -04:00
parent 9c813f9aed
commit 8b7a8ab396
9 changed files with 4007 additions and 49 deletions

View File

@@ -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;