John6666 commited on
Commit
6fd8887
1 Parent(s): 02c8c89

Upload 2 files

Browse files
Files changed (2) hide show
  1. dc.py +1 -1
  2. modutils.py +1 -1
dc.py CHANGED
@@ -1391,7 +1391,7 @@ def save_images(images: list[Image.Image], metadatas: list[str]):
1391
  output_images = []
1392
  for image, metadata in zip(images, metadatas):
1393
  info = PngImagePlugin.PngInfo()
1394
- info.add_text("metadata", metadata)
1395
  savefile = "image.png"
1396
  image.save(savefile, "PNG", pnginfo=info)
1397
  output_images.append(str(Path(savefile).resolve()))
 
1391
  output_images = []
1392
  for image, metadata in zip(images, metadatas):
1393
  info = PngImagePlugin.PngInfo()
1394
+ info.add_text("parameters", metadata)
1395
  savefile = "image.png"
1396
  image.save(savefile, "PNG", pnginfo=info)
1397
  output_images.append(str(Path(savefile).resolve()))
modutils.py CHANGED
@@ -120,7 +120,7 @@ def save_images(images: list[Image.Image], metadatas: list[str]):
120
  output_images = []
121
  for image, metadata in zip(images, metadatas):
122
  info = PngImagePlugin.PngInfo()
123
- info.add_text("metadata", metadata)
124
  savefile = f"{str(uuid.uuid4())}.png"
125
  image.save(savefile, "PNG", pnginfo=info)
126
  output_images.append(str(Path(savefile).resolve()))
 
120
  output_images = []
121
  for image, metadata in zip(images, metadatas):
122
  info = PngImagePlugin.PngInfo()
123
+ info.add_text("parameters", metadata)
124
  savefile = f"{str(uuid.uuid4())}.png"
125
  image.save(savefile, "PNG", pnginfo=info)
126
  output_images.append(str(Path(savefile).resolve()))