aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ImageController.cs
diff options
context:
space:
mode:
authorDavid Ullmer <davidullmer@outlook.de>2021-08-17 18:34:54 +0200
committerCody Robibero <cody@robibe.ro>2022-01-04 08:20:16 -0700
commit68db3be0e754d223a290c9276345bc9551eab887 (patch)
tree16c221783dbf27142818e7f5ef0df87c53376573 /Jellyfin.Api/Controllers/ImageController.cs
parente026ba84c5e0d0a761cb1cae403e6f601e6fa2e0 (diff)
Remove darkening filter from Splashscreen
Using the foregroundLayer parameter has the same effect
Diffstat (limited to 'Jellyfin.Api/Controllers/ImageController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ImageController.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/Jellyfin.Api/Controllers/ImageController.cs b/Jellyfin.Api/Controllers/ImageController.cs
index 0755b6c44..d7aac9b9c 100644
--- a/Jellyfin.Api/Controllers/ImageController.cs
+++ b/Jellyfin.Api/Controllers/ImageController.cs
@@ -1717,7 +1717,6 @@ namespace Jellyfin.Api.Controllers
/// <param name="blur">Optional. Blur image.</param>
/// <param name="backgroundColor">Optional. Apply a background color for transparent images.</param>
/// <param name="foregroundLayer">Optional. Apply a foreground layer on top of the image.</param>
- /// <param name="darken">Darken the generated image.</param>
/// <response code="200">Splashscreen returned successfully.</response>
/// <returns>The splashscreen.</returns>
[HttpGet("Branding/Splashscreen")]
@@ -1735,8 +1734,7 @@ namespace Jellyfin.Api.Controllers
[FromQuery] int? fillHeight,
[FromQuery] int? blur,
[FromQuery] string? backgroundColor,
- [FromQuery] string? foregroundLayer,
- [FromQuery] bool? darken = false)
+ [FromQuery] string? foregroundLayer)
{
string splashscreenPath;
var brandingOptions = _serverConfigurationManager.GetConfiguration<BrandingOptions>("branding");
@@ -1746,12 +1744,11 @@ namespace Jellyfin.Api.Controllers
}
else
{
- var filename = darken!.Value ? "splashscreen-darken.webp" : "splashscreen.webp";
- splashscreenPath = Path.Combine(_appPaths.DataPath, filename);
+ splashscreenPath = Path.Combine(_appPaths.DataPath, "splashscreen.webp");
if (!System.IO.File.Exists(splashscreenPath) && _imageGenerator.GetSupportedImages().Contains(GeneratedImages.Splashscreen))
{
- _imageGenerator.GenerateSplashscreen(new SplashscreenOptions(splashscreenPath, darken.Value));
+ _imageGenerator.GenerateSplashscreen(splashscreenPath);
}
}