From 99578f8577cad822952f5e0314cd7f8bee1ede6d Mon Sep 17 00:00:00 2001 From: Nathan Thomas Date: Tue, 23 Jan 2024 18:38:07 -0800 Subject: [PATCH] Fix bug where max_cover_with doesnt work (#589) * Fix bug where max_cover_with doesnt work * Remove log --- streamrip/media/artwork.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamrip/media/artwork.py b/streamrip/media/artwork.py index 0de6ad4..33a98c5 100644 --- a/streamrip/media/artwork.py +++ b/streamrip/media/artwork.py @@ -131,7 +131,7 @@ def downscale_image(input_image_path: str, max_dimension: int): # Get the original width and height width, height = image.size - if max_dimension <= max(width, height): + if max_dimension >= max(width, height): return # Calculate the new dimensions while maintaining the aspect ratio