From f131d1eb64970969920f31913d040a8175b0094d Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 7 Dec 2022 14:58:45 +0100 Subject: [PATCH] img fix --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 74333ba..c0114f7 100644 --- a/main.py +++ b/main.py @@ -168,7 +168,8 @@ class Task: try: images = [b64decode(i) for i in images] - return [Image.open(BytesIO(i)) for i in images] + images = [Image.open(BytesIO(i)) for i in images] + return [i.resize((256,256)) for i in images] except Exception as ex: raise Exception("could not decode results")