Skip to content
Node packVerifiedExternal
Open source

save-image-extended-comfyui

Save as AVIF, WebP, JPEG, customize the folder, sub-folders, and filenames of your images!

Maintainer@audioscavengerBgrade

Package profile

Status
Verified
Publisher
@audioscavenger
Source
GitHub
Stars
154

README

💾 Save Image Extended for ComfyUI

Save as JXL, AVIF, WebP, JPEG, JPEG2k, customize the folder, sub-folders, and filenames of your images!

Supports those extensions: JXL AVIF WebP jpg jpeg j2k jp2 png gif tiff bmp

  • Customize the folder, sub-folders, and filenames of your images!
  • Save data about the generated job (sampler, prompts, models) as entries in a json (text) file, in each folder.
  • Use the values of ANY node's widget, by simply adding its badge number in the form id.widget_name
  • Warning: ComfyUI can only load prompts from PNG and WebP atm

Parameters / Reserved Keywords

AttributeDescription
filename_prefixStatic string prefixed to file name.
filename_keysComma separated string with sampler parameters to add to filename. E.g: sampler_name, scheduler, cfg, denoise Added to filename in written order. vae_name model_name (upscale model), ckpt_name (checkpoint) are others that should work. Here you can try any parameter name of any node. As long as the parameter has the same variable name defined in the prompt object, they should work. The same applies to foldername_keys.
foldername_prefixFixed string prefixed to subfolders.
foldername_keysSame rules as for filename_keys. Create subfolders by using / or ../ etc.
delimiternow a free field Delimiter = any string you like. You can also use / to create subfolders.
save_job_dataSaves information about each job as entries in a jobs.json text file, inside the generated subfolder. Multiple options for its content: prompt, basic data, sampler settings, loaded models.
job_data_per_imageSaves individual job data file per image.
job_custom_textCustom string to save along with the job data.
save_metadataSaves metadata into the image.
counter_digitsNumber of digits used for the image counter. 3 = image_001.png, based on highest number in the subfolder, ignores gaps. Can be disabled when == 0.
counter_positionImage counter postition: image_001.png or 001_image.png.
one_counter_per_folderToggles one counter per subfolder, or resets when a parameter/prompt changes.
image_previewTurns the image preview on and off.
output_extFile extension: WEBP by default, AVIF, PNG, JXL, JPG, etc.
qualityQuality for JPEG/JXL/WebP/AVIF/J2K formats; Quality is relative to each format. Example: AVIF 60 is same quality as WebP 90. PNG compression is fixed at 4 and not affected by this. PNG compression times skyrocket above level 4 for zero benefits on filesize.
resolutionSaved image reolution in format 000x000 (pixels).
named_keysPrefix each value by its key name. Example: prefix-seed=123456-width=1024-cfg=5.0-0001.avif
  • ANY other keyword that exist as a field name in a widget will be resolved.
    • That is why I do not list all common keywords like ckpt_name etc, as they are virtually infinite and exist only within your workflow.
  • Unknown key names not found in any widget's fields are treated as fixed strings
    • if you enter wrongNumber.attribute, you will also get attribute as a fixed string.
  • Datetime UNIX format is now included! %Y-%m-%d or %F etc: see unix datetime formats
  • default it output only the name for ckpt_name / control_net_name / lora_name not the path
    • use ckpt_path / control_net_path / lora_path to get the same subfolders as your models
  • using .custom_string will prevent appending delimiter, the dot will be the delimiter

FAQ

Nodes in this pack

1 node
  • SaveImageExtended

Related resources

5 connections

Sources

3 sources
GitHubSourceVersion d49387f000b2febcfa9e27a5235b5d3fdde1e335
github.com/audioscavenger/save-image-extended-comfyui

Verified Sep 12

Source excerpts

1 excerpt

Source context: Repo audioscavenger/save-image-extended-comfyui