Resize thumbnails to preview size before sending

This commit is contained in:
space-nuko 2023-06-05 20:50:59 -05:00
parent 2ec980bb9f
commit 2655327ae2

View File

@ -229,6 +229,8 @@ class PromptServer():
if preview_info[-1].isdigit():
quality = int(preview_info[-1])
img.thumbnail((256, 256), Image.ANTIALIAS)
buffer = BytesIO()
if image_format in ['jpeg']:
img = img.convert("RGB")