support dummied up image a/r's

This commit is contained in:
Luke Pulverenti
2017-02-10 15:06:52 -05:00
parent 58fad600c9
commit b91f1e4d16
21 changed files with 131 additions and 6 deletions

View File

@@ -1396,7 +1396,7 @@ namespace Emby.Server.Implementations.Dto
}
catch (Exception ex)
{
}
}
}
@@ -1630,8 +1630,20 @@ namespace Emby.Server.Implementations.Dto
return null;
}
var supportedEnhancers = _imageProcessor.GetSupportedEnhancers(item, ImageType.Primary).ToList();
ImageSize size;
if (supportedEnhancers.Count == 0)
{
var defaultAspectRatio = item.GetDefaultPrimaryImageAspectRatio();
if (defaultAspectRatio.HasValue)
{
return defaultAspectRatio.Value;
}
}
try
{
size = _imageProcessor.GetImageSize(imageInfo);
@@ -1642,8 +1654,6 @@ namespace Emby.Server.Implementations.Dto
return null;
}
var supportedEnhancers = _imageProcessor.GetSupportedEnhancers(item, ImageType.Primary).ToList();
foreach (var enhancer in supportedEnhancers)
{
try