mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
update image size responses
This commit is contained in:
parent
6b2445aa2c
commit
8dcfda89d1
@ -326,7 +326,7 @@ namespace MediaBrowser.Api.Images
|
||||
var fileInfo = _fileSystem.GetFileInfo(info.Path);
|
||||
length = fileInfo.Length;
|
||||
|
||||
var size = _imageProcessor.GetImageSize(info);
|
||||
var size = _imageProcessor.GetImageSize(info, true);
|
||||
|
||||
width = Convert.ToInt32(size.Width);
|
||||
height = Convert.ToInt32(size.Height);
|
||||
|
@ -33,6 +33,8 @@ namespace MediaBrowser.Controller.Drawing
|
||||
/// <returns>ImageSize.</returns>
|
||||
ImageSize GetImageSize(ItemImageInfo info);
|
||||
|
||||
ImageSize GetImageSize(ItemImageInfo info, bool allowSlowMethods);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the size of the image.
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user