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

View file

@ -131,7 +131,7 @@ def downscale_image(input_image_path: str, max_dimension: int):
# Get the original width and height # Get the original width and height
width, height = image.size width, height = image.size
if max_dimension <= max(width, height): if max_dimension >= max(width, height):
return return
# Calculate the new dimensions while maintaining the aspect ratio # Calculate the new dimensions while maintaining the aspect ratio