Remove CropWhitespace function

This commit is contained in:
Bond_009
2021-01-09 10:51:59 +01:00
parent a8230c07ea
commit 620fbf0f89
4 changed files with 6 additions and 92 deletions

View File

@@ -1681,7 +1681,7 @@ namespace Jellyfin.Api.Controllers
int? width,
int? height,
int? quality,
bool? cropWhitespace,
bool? cropWhitespace, // TODO: Remove
bool? addPlayedIndicator,
int? blur,
string? backgroundColor,
@@ -1756,7 +1756,6 @@ namespace Jellyfin.Api.Controllers
backgroundColor,
foregroundLayer,
imageInfo,
cropWhitespace.Value,
outputFormats,
cacheDuration,
responseHeaders,
@@ -1855,7 +1854,6 @@ namespace Jellyfin.Api.Controllers
string? backgroundColor,
string? foregroundLayer,
ItemImageInfo imageInfo,
bool cropWhitespace,
IReadOnlyCollection<ImageFormat> supportedFormats,
TimeSpan? cacheDuration,
IDictionary<string, string> headers,
@@ -1868,7 +1866,6 @@ namespace Jellyfin.Api.Controllers
var options = new ImageProcessingOptions
{
CropWhiteSpace = cropWhitespace,
Height = height,
ImageIndex = index ?? 0,
Image = imageInfo,