3.0.5768.2

This commit is contained in:
Luke Pulverenti 2015-10-18 09:10:30 -04:00
parent 8f5609df3a
commit 5ecf69503b
2 changed files with 8 additions and 5 deletions

View File

@ -312,19 +312,22 @@ namespace MediaBrowser.Api.Images
{ {
try try
{ {
var fileInfo = new FileInfo(info.Path);
int? width = null; int? width = null;
int? height = null; int? height = null;
long length = 0;
try try
{ {
if (info.IsLocalFile) if (info.IsLocalFile)
{ {
var fileInfo = new FileInfo(info.Path);
length = fileInfo.Length;
var size = _imageProcessor.GetImageSize(info); var size = _imageProcessor.GetImageSize(info);
width = Convert.ToInt32(size.Width); width = Convert.ToInt32(size.Width);
height = Convert.ToInt32(size.Height); height = Convert.ToInt32(size.Height);
} }
} }
catch catch
@ -337,7 +340,7 @@ namespace MediaBrowser.Api.Images
ImageIndex = imageIndex, ImageIndex = imageIndex,
ImageType = info.Type, ImageType = info.Type,
ImageTag = _imageProcessor.GetImageCacheTag(item, info), ImageTag = _imageProcessor.GetImageCacheTag(item, info),
Size = fileInfo.Length, Size = length,
Width = width, Width = width,
Height = height Height = height
}; };

View File

@ -1,4 +1,4 @@
using System.Reflection; using System.Reflection;
[assembly: AssemblyVersion("3.0.*")] //[assembly: AssemblyVersion("3.0.*")]
//[assembly: AssemblyVersion("3.0.5768.1")] [assembly: AssemblyVersion("3.0.5768.2")]