Replies: 2 comments
-
I'm very confused what even is a if this |
Beta Was this translation helpful? Give feedback.
0 replies
-
This should do it. Put it in a folder full of images and run it. import glob
from PIL import Image
html = "<html>\n <body>"
for i in glob.glob("*.png"):
html += f'''
<div style="display: flex; gap: 4px; font-family: monospace; white-space: pre-line;">
<img src="{i}">
<span>{i}\n\n{Image.open(i).info["parameters"]}</span>
</div>'''
html += "\n </body>\n</html>"
with open("output.htm", "w", encoding="utf-8") as f:
f.write(html) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to have output.html where all generated images, with prompts and settings, can be stored. Every day new output.html file will be generated for that date. I could not to find where to activate this option in the settings.
Beta Was this translation helpful? Give feedback.
All reactions