|
|
|
@ -1582,16 +1582,21 @@ namespace Emby.Server.Implementations.Dto
|
|
|
|
|
|
|
|
|
|
ImageSize size;
|
|
|
|
|
|
|
|
|
|
if (supportedEnhancers.Count == 0)
|
|
|
|
|
{
|
|
|
|
|
var defaultAspectRatio = item.GetDefaultPrimaryImageAspectRatio();
|
|
|
|
|
|
|
|
|
|
if (defaultAspectRatio.HasValue)
|
|
|
|
|
{
|
|
|
|
|
if (supportedEnhancers.Count == 0)
|
|
|
|
|
{
|
|
|
|
|
return defaultAspectRatio.Value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
double dummyWidth = 200;
|
|
|
|
|
double dummyHeight = dummyWidth / defaultAspectRatio.Value;
|
|
|
|
|
size = new ImageSize(dummyWidth, dummyHeight);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
size = _imageProcessor.GetImageSize(imageInfo);
|
|
|
|
@ -1601,6 +1606,7 @@ namespace Emby.Server.Implementations.Dto
|
|
|
|
|
//_logger.ErrorException("Failed to determine primary image aspect ratio for {0}", ex, path);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (var enhancer in supportedEnhancers)
|
|
|
|
|
{
|
|
|
|
|