Nodes/JLC-Flux2-ControlNet/ JLC Conditional Save Image
ComfyUI Node

 JLC Conditional Save Image

A ComfyUI node in Flux2 Latents Cache/utils with 7 inputs and 2 outputs.

By Damkohler·Created 2 months ago·Updated 6 days ago· 13
 JLC Conditional Save Image
  • image_on_true
  • image_on_false
  • selected_image
  • image_save_path
switchfalse
save_whenFALSE
filename_prefixComfyUI
output_folderoutput
compress_level4
CategoryFlux2 Latents Cache/utils

Inputs (7)

NameTypeDefaultDescription
image_on_trueIMAGELazy IMAGE used when switch is TRUE. In Flux2 cache workflows, this is commonly the cache-prep or proof branch.
image_on_falseIMAGELazy IMAGE used when switch is FALSE. In Flux2 cache workflows, this is commonly the final inference image branch.
switchBOOLEANfalseShared branch selector. Companion to the JLC Flux2 cache-prep nodes: TRUE usually selects cache prep; FALSE usually selects normal inference.
save_whenCOMBOFALSEWhich switch states write a PNG. The selected branch is still executed either way, which makes this node a cache-prep companion.
filename_prefixSTRINGComfyUIFilename prefix. Standard ComfyUI formatting tokens and %batch_num% are supported.
output_folderSTRINGoutputUse 'output', a relative subfolder inside the ComfyUI output directory, or an absolute destination path.
compress_levelINT40–9PNG lossless compression: 0 = none/fastest/largest, 9 = strongest/slower/smallest. Does not affect metadata.

Outputs (2)

NameTypeDescription
selected_imageIMAGE
image_save_pathSTRING