Skip to content

Getting 'wrong' metadata #8647

Answered by radarhere
neal3000 asked this question in Q&A
Dec 31, 2024 · 4 comments · 2 replies
Discussion options

You must be logged in to vote
from PIL import Image
im = Image.open("comfy.png")
im.load()
for k, v in im.info.items():
    print(k+": "+str(v)[:100])

will give you

chromaticity: (0.3127, 0.329, 0.64, 0.33, 0.3, 0.6, 0.15, 0.06)
date:create: 2024-12-30T07:05:02+00:00
date:modify: 2024-12-30T07:05:02+00:00
date:timestamp: 2024-12-31T02:53:56+00:00
prompt: {"5": {"inputs": {"width": 1440, "height": 1280, "batch_size": 1}, "class_type": "EmptyLatentImage"}
workflow: {"last_node_id": 28, "last_link_id": 54, "nodes": [{"id": 20, "type": "PreviewImage", "pos": {"0": 1

Is that all you were after?

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@neal3000
Comment options

Comment options

You must be logged in to vote
1 reply
@radarhere
Comment options

Answer selected by radarhere
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants