Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/e216702bcfdf3d6a90f59e11984098990f069043
You should set ROOT_URL correctly, otherwise the web may not work correctly.
6 changed files with
27 additions and
14 deletions
@ -368,10 +368,10 @@ namespace Emby.Drawing
return GetCachePath ( ResizedImageCachePath , filename , "." + format . ToString ( ) . ToLowerInvariant ( ) ) ;
}
public ImageDimensions GetImage Size ( BaseItem item , ItemImageInfo info )
= > GetImage Size ( item , info , true ) ;
public ImageDimensions GetImage Dimensions ( BaseItem item , ItemImageInfo info )
= > GetImage Dimensions ( item , info , true ) ;
public ImageDimensions GetImage Size ( BaseItem item , ItemImageInfo info , bool updateItem )
public ImageDimensions GetImage Dimensions ( BaseItem item , ItemImageInfo info , bool updateItem )
{
int width = info . Width ;
int height = info . Height ;
@ -384,7 +384,7 @@ namespace Emby.Drawing
string path = info . Path ;
_logger . LogInformation ( "Getting image size for item {ItemType} {Path}" , item . GetType ( ) . Name , path ) ;
ImageDimensions size = GetImage Size ( path ) ;
ImageDimensions size = GetImage Dimensions ( path ) ;
info . Width = size . Width ;
info . Height = size . Height ;
@ -399,7 +399,7 @@ namespace Emby.Drawing
/// <summary>
/// Gets the size of the image.
/// </summary>
public ImageDimensions GetImage Size ( string path )
public ImageDimensions GetImage Dimensions ( string path )
= > _imageEncoder . GetImageSize ( path ) ;
/// <summary>
@ -181,7 +181,7 @@ namespace Emby.Photos
try
{
var size = _imageProcessor . GetImage Size ( item , img , false ) ;
var size = _imageProcessor . GetImage Dimensions ( item , img , false ) ;
if ( size . Width > 0 & & size . Height > 0 )
{
@ -1418,7 +1418,7 @@ namespace Emby.Server.Implementations.Dto
try
{
size = _imageProcessor . GetImage Size ( item , imageInfo ) ;
size = _imageProcessor . GetImage Dimensions ( item , imageInfo ) ;
if ( size . Width < = 0 | | size . Height < = 0 )
{
@ -324,7 +324,7 @@ namespace MediaBrowser.Api.Images
var fileInfo = _fileSystem . GetFileInfo ( info . Path ) ;
length = fileInfo . Length ;
ImageDimensions size = _imageProcessor . GetImage Size ( item , info , true ) ;
ImageDimensions size = _imageProcessor . GetImage Dimensions ( item , info , true ) ;
width = size . Width ;
height = size . Height ;
@ -26,16 +26,29 @@ namespace MediaBrowser.Controller.Drawing
/// <value>The image enhancers.</value>
IImageEnhancer [ ] ImageEnhancers { get ; }
ImageDimensions GetImageSize ( string path ) ;
/// <summary>
/// Gets the dimensions of the image.
/// </summary>
/// <param name="path">Path to the image file.</param>
/// <returns>ImageDimensions</returns>
ImageDimensions GetImageDimensions ( string path ) ;
/// <summary>
/// Gets the size of the image.
/// Gets the dimensions of the image.
/// </summary>
/// <param name="item">The base item.</param>
/// <param name="info">The information.</param>
/// <returns>Image Size. </returns>
ImageDimensions GetImage Size ( BaseItem item , ItemImageInfo info ) ;
/// <returns>Image Dimensions </returns>
ImageDimensions GetImage Dimensions ( BaseItem item , ItemImageInfo info ) ;
ImageDimensions GetImageSize ( BaseItem item , ItemImageInfo info , bool updateItem ) ;
/// <summary>
/// Gets the dimensions of the image.
/// </summary>
/// <param name="item">The base item.</param>
/// <param name="info">The information.</param>
/// <param name="updateItem">Whether or not the item info should be updated.</param>
/// <returns>ImageDimensions</returns>
ImageDimensions GetImageDimensions ( BaseItem item , ItemImageInfo info , bool updateItem ) ;
/// <summary>
/// Adds the parts.
@ -1,7 +1,7 @@
namespace MediaBrowser.Model.Drawing
{
/// <summary>
/// Struct Image Size
/// Struct Image Dimensions
/// </summary>
public struct ImageDimensions
{