From 7117c8ce2761cd8cf97a2f6f9c1b16c99d864d14 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 12 Nov 2025 22:40:02 +0900 Subject: [PATCH] fix: smart_resize factor --- groundcua_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundcua_utils.py b/groundcua_utils.py index 1139376..7125cf2 100644 --- a/groundcua_utils.py +++ b/groundcua_utils.py @@ -42,7 +42,7 @@ def prepare_image(image, min_pixels=MIN_PIXELS, max_pixels=MAX_PIXELS): width, height = image.size resized_height, resized_width = smart_resize( - height, width, min_pixels=min_pixels, max_pixels=max_pixels + height, width, factor=28, min_pixels=min_pixels, max_pixels=max_pixels ) resized_image = image.resize((resized_width, resized_height)) return resized_image, (resized_width, resized_height)