aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto/DtoService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/Dto/DtoService.cs')
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs18
1 files changed, 2 insertions, 16 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index 1854829a2..5ef910e51 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -1642,6 +1642,8 @@ namespace Emby.Server.Implementations.Dto
return null;
}
+ _logger.Info("Getting image size for item type {0}", item.GetType().Name);
+
try
{
size = _imageProcessor.GetImageSize(imageInfo);
@@ -1673,22 +1675,6 @@ namespace Emby.Server.Implementations.Dto
return null;
}
- var photo = item as Photo;
- if (photo != null && photo.Orientation.HasValue)
- {
- switch (photo.Orientation.Value)
- {
- case ImageOrientation.LeftBottom:
- case ImageOrientation.LeftTop:
- case ImageOrientation.RightBottom:
- case ImageOrientation.RightTop:
- var temp = height;
- height = width;
- width = temp;
- break;
- }
- }
-
return width / height;
}
}