mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-09 14:11:55 -04:00
Fix bug where max_cover_with doesnt work (#589)
* Fix bug where max_cover_with doesnt work * Remove log
This commit is contained in:
parent
c2b4c38e2f
commit
99578f8577
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue