comment on redundancy

master^2
papuSpartan 2024-09-13 19:18:54 -05:00
parent afc3ec8ba3
commit ab9a2e717d
No known key found for this signature in database
GPG Key ID: CA376082283AF69A
1 changed files with 1 additions and 0 deletions

View File

@ -361,6 +361,7 @@ class Worker:
mode = 'img2img' # for use in checking script compat
images = []
for image in init_images:
# looks redundant when encode_pil...() could be used, but it does not support all file formats. E.g. AVIF
buffer = io.BytesIO()
image.save(buffer, format="PNG")
image = 'data:image/png;base64,' + str(base64.b64encode(buffer.getvalue()), 'utf-8')