Nodes/ComfyUI-CitronNodes/Citron Image Saver
ComfyUI Node

Citron Image Saver

Save images with generation metadata

By citronlegacy·Created about a year ago·Updated a day ago· 0
Citron Image Saver
  • images
  • hashes
  • a1111_params
◄filename%time_%basemodelname_%seed►
◄path►
◄extension▾►
◄steps20►
◄cfg7.00►
◄modelname►
◄sampler_name►
◄scheduler_namenormal►
◄positiveunknown►
◄negativeunknown►
◄seed_value0►
◄width512►
◄height512►
◄lossless_webptrue►
◄quality_jpeg_or_webp100►
◄optimize_pngfalse►
◄counter0►
◄denoise1.00►
◄clip_skip0►
◄time_format%Y-%m-%d-%H%M%S►
◄save_workflow_as_jsonfalse►
◄embed_workflowtrue►
◄additional_hashes►
◄show_previewtrue►
◄custom►
CategoryCitron_ImageSaver

Inputs (26)

NameTypeDefaultDescription
imagesIMAGEimage(s) to save
filenameSTRING%time_%basemodelname_%seedfilename (available variables: %date, %time, %model, %width, %height, %seed, %counter, %sampler_name, %steps, %cfg, %scheduler_name, %basemodelname, %denoise, %clip_skip)
pathSTRINGpath to save the images (under Comfy's save directory)
extensionCOMBOfile extension/type to save image as
stepsoptINT201–10000number of steps
cfgoptFLOAT7.000–100CFG value
modelnameoptSTRINGmodel name (can be multiple, separated by commas)
sampler_nameoptSTRINGsampler name (as string)
scheduler_nameoptSTRINGnormalscheduler name (as string)
positiveoptSTRINGunknownpositive prompt
negativeoptSTRINGunknownnegative prompt
seed_valueoptINT00–18446744073709550000seed
widthoptINT5120–16384image width
heightoptINT5120–16384image height
lossless_webpoptBOOLEANtrueif True, saved WEBP files will be lossless
quality_jpeg_or_webpoptINT1001–100quality setting of JPEG/WEBP
optimize_pngoptBOOLEANfalseif True, saved PNG files will be optimized (can reduce file size but is slower)
counteroptINT00–18446744073709550000counter
denoiseoptFLOAT1.000–1denoise value
clip_skipoptINT0-24–24skip last CLIP layers (positive or negative value, 0 for no skip)
time_formatoptSTRING%Y-%m-%d-%H%M%Stimestamp format
save_workflow_as_jsonoptBOOLEANfalseif True, also saves the workflow as a separate JSON file
embed_workflowoptBOOLEANtrueif True, embeds the workflow in the saved image files. Stable for PNG, experimental for WEBP. JPEG experimental and only if metadata size is below 65535 bytes
additional_hashesoptSTRINGhashes separated by commas, optionally with names. 'Name:HASH' (e.g., 'MyLoRA:FF735FF83F98')
show_previewoptBOOLEANtrueif True, displays saved images in the UI preview
customoptSTRINGcustom string to add to the metadata, inserted into the a111 string between clip skip and model hash

Outputs (2)

NameTypeDescription
hashesSTRINGComma-separated list of the hashes to chain with other Image Saver additional_hashes
a1111_paramsSTRINGWritten parameters to the image metadata