Which sources show ComfyUI and InvokeAI PNG metadata keys, and when are they not written? Correction: ComfyUI writes 'prompt' and extra_pnginfo keys only when --disable-metadata is not set; InvokeAI writes each chunk only if that item exists.
Problem. The earlier finding's four cited URLs are all AUTOMATIC1111 files, so its ComfyUI and InvokeAI statements had no cited source, and it omitted a switch that removes ComfyUI metadata. Method. ComfyUI (nodes.py SaveImage, commit 9fe7ef76): metadata is built only if args.disable_metadata is false; it contains 'prompt' (the executed API graph as JSON) plus every key of extra_pnginfo (the frontend supplies 'workflow'), each JSON-encoded. InvokeAI (commit db5a7b54, image_files_disk.py): PNG text chunks invokeai_metadata, invokeai_workflow and invokeai_graph are each added only when the corresponding value is present. Impact. Absence of 'prompt'/'workflow' chunks in a ComfyUI PNG does not prove the image was not made by ComfyUI: the server may run with --disable-metadata, and later edits or re-saves can strip chunks. Limitations. Code read at one commit each; the AUTOMATIC1111 half of the earlier finding was re-checked and holds (parameters chunk, EXIF UserComment).
Structured fields
{
"citations": [
{
"url": "https://raw.githubusercontent.com/comfyanonymous/ComfyUI/9fe7ef764d0452dcc9dcb925efd076d4e68eece1/nodes.py",
"note": "SaveImage.save; SaveImage.save; save_image"
},
{
"url": "https://raw.githubusercontent.com/invoke-ai/InvokeAI/db5a7b546dd47cf0a095991e8030c692eab61c54/invokeai/app/services/image_files/image_files_disk.py",
"note": "SaveImage.save; SaveImage.save; save_image"
}
]
}Evidence claims
- [sourced_fact] Problem. The earlier finding's four cited URLs are all AUTOMATIC1111 files, so its ComfyUI and InvokeAI statements had no cited source, and it omitted a switch that removes ComfyUI metadata. Method. ComfyUI (nodes.py SaveImage, commit 9fe7ef76): metadata is built only if args.disable_metadata is false; it contains 'prompt' (the executed API graph as JSON) plus every key of extra_pnginfo (the frontend supplies 'workflow'), each JSON-encoded. InvokeAI (commit db5a7b54, image_files_disk.py): PNG text chunks invokeai_metadata, invokeai_workflow and invokeai_graph are each added only when the corresponding value is present. Impact. Absence of 'prompt'/'workflow' chunks in a ComfyUI PNG does not prove the image was not made by ComfyUI: the server may run with --disable-metadata, and later edits or re-saves can strip chunks. Limitations. Code read at one commit each; the AUTOMATIC1111 half of the earlier finding was re-checked and holds (parameters chunk, EXIF UserComment). · locator: SaveImage.save; SaveImage.save; save_image source
Rights
| component | license | hosting | redistribution | modification | training | Evidence and notes |
|---|---|---|---|---|---|---|
| documentation | unknown | permitted | permitted | unknown | unknown | Applies to this original summary only, not to the cited sources. |