From 0915a61c19452e878b955fcb9cc8cb76f72c43a7 Mon Sep 17 00:00:00 2001
From: GOvEy1nw <45126527+GOvEy1nw@users.noreply.github.com>
Date: Thu, 30 Jul 2026 09:20:01 +0100
Subject: fix(images): narrow cache path test seam
---
src/Jellyfin.Drawing/ImageProcessor.cs | 35 ++++++++++++++++++++++------------
1 file changed, 23 insertions(+), 12 deletions(-)
(limited to 'src/Jellyfin.Drawing/ImageProcessor.cs')
diff --git a/src/Jellyfin.Drawing/ImageProcessor.cs b/src/Jellyfin.Drawing/ImageProcessor.cs
index f906ad10ab..ad1b216970 100644
--- a/src/Jellyfin.Drawing/ImageProcessor.cs
+++ b/src/Jellyfin.Drawing/ImageProcessor.cs
@@ -252,22 +252,33 @@ public sealed class ImageProcessor : IImageProcessor, IDisposable
/// Gets the cache file path based on a set of parameters.
///
/// The original image path.
- /// The requested width.
- /// The requested height.
- /// The maximum width.
- /// The maximum height.
- /// The fill width.
- /// The fill height.
- /// The image quality.
/// The source image modification date.
/// The output format.
- /// The played percentage overlay value.
- /// The unwatched count overlay value.
- /// The blur amount.
- /// The background color.
- /// The foreground layer.
+ /// The image processing options.
/// The transformed image cache path.
internal string GetCacheFilePath(
+ string originalPath,
+ DateTime dateModified,
+ ImageFormat format,
+ ImageProcessingOptions options)
+ => GetCacheFilePath(
+ originalPath,
+ options.Width,
+ options.Height,
+ options.MaxWidth,
+ options.MaxHeight,
+ options.FillWidth,
+ options.FillHeight,
+ options.Quality,
+ dateModified,
+ format,
+ options.PercentPlayed,
+ options.UnplayedCount,
+ options.Blur,
+ options.BackgroundColor,
+ options.ForegroundLayer);
+
+ private string GetCacheFilePath(
string originalPath,
int? width,
int? height,
--
cgit v1.2.3