From ba86ba12732b3290eaa74936950a370966b41ac5 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Thu, 16 Apr 2026 02:22:56 +1000 Subject: v0.10a --- Services/MediaService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Services/MediaService.cs') diff --git a/Services/MediaService.cs b/Services/MediaService.cs index 2f7eac6..27c77d6 100644 --- a/Services/MediaService.cs +++ b/Services/MediaService.cs @@ -285,10 +285,10 @@ public class MediaService : IMediaService { using var image = new MagickImage(GetPath(mediaId)); - if(width > image.Width || height > image.Height) - throw new ThumbnailException( - "Requested thumbnail size is larger than original media", - mediaId); + if(width > image.Width || height > image.Height) { + width = (int) image.Width; + height = (int) image.Height; + } image.Thumbnail((uint) (width ?? -1), (uint) (height ?? -1)); image.Write(thumbPath, MagickFormat.Jpeg); -- cgit v1.3