How to Recover a ComfyUI Workflow from a PNG Image

Learn how to restore a ComfyUI workflow from a PNG by opening the original image on the canvas and checking its embedded workflow metadata.
Can a PNG contain a ComfyUI workflow?
Yes. ComfyUI can embed workflow information in generated output files. Its current documentation describes a workflow field for the node graph and a prompt field for the execution-oriented API representation. The fields are metadata; they do not change the visible image.
Method 1: drag the original PNG onto the canvas
Open ComfyUI and locate the original image file on your computer. Drag the PNG onto the ComfyUI canvas. If compatible workflow metadata is present, the interface can restore the graph. You can also use File > Open where supported. Review the loaded nodes and connections before running anything.
Workflow versus prompt metadata
The workflow field is intended to restore the visual graph in the frontend. The prompt field represents the API prompt used to execute the graph. A file may contain one field without the other, depending on how it was saved. Do not assume that finding a prompt means the full editable workflow is available.
What if nothing loads?
Confirm that you are using the original generated file rather than a screenshot, social-media download or re-encoded copy. ComfyUI can be configured to disable metadata saving, and some save paths may not include workflow information. An image editor or optimizer may also rewrite the file and remove metadata. Try a known original ComfyUI output to separate a file issue from an installation issue.
Why the restored workflow may not run
The workflow metadata does not package every dependency. Model checkpoints, LoRAs, input images, custom nodes and other assets may be stored elsewhere. A graph can load while still showing missing-node or missing-model errors. Install only custom nodes from sources you trust and verify model files before execution.
Inspect metadata before sharing
Embedded workflow information can reveal prompts, model names, node structure or local paths. Before publishing a generated image, inspect the metadata and decide whether you want to share the workflow. For background on inspecting prompt metadata in PNG files, see NeroTool’s existing guide to finding hidden AI prompts.