Comfy-Org / Comfy-Org/ComfyUI

[Feature Request] Save workflow alongside image

Open
#1,800 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
160

Description

Would it be possible to save the workflow that generated an image alongside the image in the output directory? Essentially the same name as the image, but with a `.json` extension. This could be a simple boolean input in the save image node to trigger the saving of the workflow.

This would be for single and batched images, where batched images save the specific workflow used for them (including seeds - same with single images). This would allow you to go back and review the workflow used on any given image at any time in the future.

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating the save image node and the output path handling, then trace how single and batched images retain their workflow and seeds. Done means an optional setting writes a same-basename .json workflow beside each image, including the workflow specific to each batch item.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.