update GetImageSize

This commit is contained in:
Luke Pulverenti 2017-05-14 14:55:40 -04:00
parent 00507972be
commit 4acaeecca4
1 changed files with 15 additions and 10 deletions

View File

@ -513,13 +513,16 @@ namespace Emby.Drawing
/// <returns>ImageSize.</returns>
private ImageSize GetImageSizeInternal(string path, bool allowSlowMethod)
{
// Can't use taglib because it keeps a lock on the file
//try
//{
// using (var file = TagLib.File.Create(new StreamFileAbstraction(Path.GetFileName(path), _fileSystem.OpenRead(path), null)))
// using (var fileStream = _fileSystem.OpenRead(path))
// {
// using (var file = TagLib.File.Create(new StreamFileAbstraction(Path.GetFileName(path), fileStream, null)))
// {
// var image = file as TagLib.Image.File;
// if (image != null)
// {
// var properties = image.Properties;
// return new ImageSize
@ -529,6 +532,8 @@ namespace Emby.Drawing
// };
// }
// }
// }
//}
//catch
//{
//}