From 0f52838f8f983dae4750d824a1ee9a7c250dc914 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Thu, 25 Jun 2026 02:22:03 +1000 Subject: Fixed issue with thumbnail width and height clamping --- Services/MediaService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Services/MediaService.cs') diff --git a/Services/MediaService.cs b/Services/MediaService.cs index d608cc9..6019f3f 100644 --- a/Services/MediaService.cs +++ b/Services/MediaService.cs @@ -311,10 +311,10 @@ public class MediaService : IMediaService { using var image = new MagickImage(GetPath(mediaId)); - if(width > image.Width || height > image.Height) { + if(width > image.Width) width = (int) image.Width; + if(height > image.Height) height = (int) image.Height; - } image.Thumbnail((uint) (width ?? -1), (uint) (height ?? -1)); image.Write(thumbPath, MagickFormat.Jpeg); -- cgit v1.3