2024-01-04 20:33:25 +01:00
2023-08-15 12:41:25 +04:00
2023-08-15 12:41:25 +04:00
2023-08-17 14:27:32 +04:00
2024-01-04 18:35:55 +01:00
2024-01-03 19:46:16 +01:00
2023-08-17 00:12:31 +04:00
2024-01-04 19:43:59 +01:00

[!] Forked from https://github.com/giriss/comfy-image-saver, which seems to be inactive since a while.

Save image with generation metadata in ComfyUI

Allows you to save images with their generation metadata. Includes the metadata compatible with Civitai & Prompthero geninfo auto-detection. Works with PNG, JPG and WEBP. For PNG stores both the full workflow in comfy format, plus a1111-style parameters. For JPEG/WEBP only the a1111-style parameters are stored.

You can find the example workflow file named example-workflow.json.

example-workflow

How to install?

If you have ComfyUI-Manager, you can simply search "ComfyUI Image Saver" and install these custom nodes.

Method 2: Easy

If you don't have ComfyUI-Manager, then:

  • Using CLI, go to the ComfyUI folder
  • cd custom_nodes
  • git clone git@github.com:giriss/comfy-image-saver.git
  • cd comfy-image-saver
  • pip install -r requirements.txt
  • Start/restart ComfyUI

Autodetection in action

Screenshot 2023-08-17 at 13 15 18

Customization of file/folder names

You can use following placeholders:

  • %date
  • %seed
  • %counter
  • %sampler_name
  • %steps
  • %cfg
  • %scheduler
  • %denoise
  • %time – format taken from time_format
  • %model – full name of model file
  • %basemodelname – name of model (without file extension)

Example:

filename value Result file name
%time-%basemodelname-%cfg-%steps-%sampler_name-%scheduler-%seed 2023-11-16-131331-Anything-v4.5-pruned-mergedVae-7.0-25-dpm_2-normal-1_01.png
S
Description
No description provided
Readme MIT
839 KiB
Languages
Python 97.5%
JavaScript 2.5%