Upload dc.py
Browse files
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("parameters
|
| 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()))
|