Fix bug where max_cover_with doesnt work (#589)

* Fix bug where max_cover_with doesnt work

* Remove log
This commit is contained in:
Nathan Thomas 2024-01-23 18:38:07 -08:00 committed by GitHub
parent c2b4c38e2f
commit 99578f8577
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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