Skip to content

Commit

Permalink
Merge branch 'main' into odd-size-revamp
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjanag committed Feb 2, 2024
2 parents ab50895 + 4b4932d commit 5d51a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cleanvision/issue_managers/image_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def calculate(self, image: Image) -> Dict[str, Union[float, str]]:
ratio = max(image.width, image.height) / self.max_resolution
if ratio > 1:
resized_image = image.resize(
(int(image.width // ratio), int(image.height // ratio))
(max(int(image.width // ratio), 1), max(int(image.height // ratio), 1))
)
else:
resized_image = image.copy()
Expand Down

0 comments on commit 5d51a9f

Please sign in to comment.