decrease image size for faster verification and less token usage

This commit is contained in:
csd4ni3l
2025-08-08 23:30:51 +02:00
parent 7b7b23bbc0
commit bf1decc912

View File

@@ -47,7 +47,7 @@ def register():
return f"Username: {username}\nPassword: {password}" return f"Username: {username}\nPassword: {password}"
def resize_image_file(path, max_side=384, fmt="JPEG"): def resize_image_file(path, max_side=256, fmt="JPEG"):
img = Image.open(path) img = Image.open(path)
scale = max_side / max(img.size) scale = max_side / max(img.size)
if scale < 1: if scale < 1: