mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
make photos project portable
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user