Skip to content

Commit 4930e03

Browse files
author
bghira
committed
multiaspectimage: precision=2
1 parent 2149360 commit 4930e03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helpers/multiaspect/image.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def adjust_for_divisibility(n):
397397
)
398398

399399
@staticmethod
400-
def calculate_image_aspect_ratio(image, rounding: int = 3):
400+
def calculate_image_aspect_ratio(image, rounding: int = 2):
401401
"""
402402
Calculate the aspect ratio of an image and round it to a specified precision.
403403
@@ -418,7 +418,7 @@ def calculate_image_aspect_ratio(image, rounding: int = 3):
418418
return aspect_ratio
419419

420420
@staticmethod
421-
def determine_bucket_for_aspect_ratio(aspect_ratio, rounding: int = 3):
421+
def determine_bucket_for_aspect_ratio(aspect_ratio, rounding: int = 2):
422422
"""
423423
Determine the correct bucket for a given aspect ratio.
424424

0 commit comments

Comments
 (0)