Uthar commited on
Commit
5011330
·
verified ·
1 Parent(s): 5587c89

Update externalmod.py

Browse files
Files changed (1) hide show
  1. externalmod.py +2 -1
externalmod.py CHANGED
@@ -596,7 +596,8 @@ def save_image(image, savefile, modelname, prompt, nprompt, height=0, width=0, s
596
  if width > 0 and height > 0: metadata["resolution"] = f"{width} x {height}"
597
  metadata_str = json.dumps(metadata)
598
  info = PngImagePlugin.PngInfo()
599
- info.add_text("metadata", metadata_str)
 
600
  image.save(savefile, "PNG", pnginfo=info)
601
  return str(Path(savefile).resolve())
602
  except Exception as e:
 
596
  if width > 0 and height > 0: metadata["resolution"] = f"{width} x {height}"
597
  metadata_str = json.dumps(metadata)
598
  info = PngImagePlugin.PngInfo()
599
+ # info.add_text("metadata", metadata_str)
600
+ info.add_text("", metadata_str)
601
  image.save(savefile, "PNG", pnginfo=info)
602
  return str(Path(savefile).resolve())
603
  except Exception as e: