mirror of
https://git.wownero.com/dsc/craiyon-irc.git
synced 2024-08-15 01:03:24 +00:00
img fix
This commit is contained in:
parent
7b12c98b07
commit
f131d1eb64
1 changed files with 2 additions and 1 deletions
3
main.py
3
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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue