Browse Source

check for text attr and save

pull/1361/head
Chris 1 year ago
parent
commit
18379dea36
  1. 1
      server.py

1
server.py

@ -235,6 +235,7 @@ class PromptServer():
if os.path.isfile(file):
with Image.open(file) as original_pil:
metadata = PngInfo()
if hasattr(original_pil,'text'):
for key in original_pil.text:
metadata.add_text(key, original_pil.text[key])
original_pil = original_pil.convert('RGBA')

Loading…
Cancel
Save