fix a few more metadata bugs

- facetool and upscale arguments now written into metadata
- cleaned up handling of !fetch command
This commit is contained in:
Lincoln Stein
2022-10-21 17:45:15 -04:00
parent f6b31d51e0
commit 9bef643bf5
3 changed files with 21 additions and 22 deletions

View File

@ -38,7 +38,7 @@ class PngWriter:
info = PngImagePlugin.PngInfo()
info.add_text('Dream', dream_prompt)
if metadata:
info.add_text('sd-metadata', json.dumps(metadata))
info.add_text('sd-metadata', json.dumps(metadata))
image.save(path, 'PNG', pnginfo=info, compress_level=compress_level)
return path