Nodes/ComfyUI-YogurtNodes/Save Image Bridge Ex (Yogurt Nodes)
ComfyUI Node

Save Image Bridge Ex (Yogurt Nodes)

The save bridge, but with any file extension you want

By yogurt7771·Created 2 years ago·Updated 4 days ago· 1
Save Image Bridge Ex (Yogurt Nodes)
  • images
  • images
  • width
  • height
  • batch
  • saved_paths
output_dir
filename_prefixComfyUI
disable_metadatafalse
overwritefalse
suffix.png
custom_suffix
png_compression4
jpeg_quality100

Save Image Bridge Ex is the "extra" version of the pack's plain Save Image Bridge, and the only real difference is one dropdown. Where the plain node lets you pick between .png and .jpg, this one adds a Custom option plus a custom_suffix field so you can save as anything Pillow knows how to write - .webp, .bmp, .tiff, whatever your downstream tool actually wants.

Everything else is identical, which is a blessing and a curse. You get the same bridge behavior: it writes the image to disk and passes the image, width, height, batch size and the list of saved file paths on to whatever's next in the graph. Same inputs - images, output_dir (blank means ComfyUI's output folder), filename_prefix with %date:yyyy-MM-dd% style tokens, disable_metadata, overwrite, png_compression and jpeg_quality - and the same five outputs (images, width, height, batch, saved_paths).

When the Ex earns its name

If you're only ever saving PNG, just use the regular bridge and save yourself the dropdown. The Ex version earns its keep in exactly two spots:

  • Web delivery. .webp is dramatically smaller than PNG for the same content and it's what a browser or an API endpoint will happily eat. Setting suffix to Custom and custom_suffix to .webp gives you half-size files with zero re-encode pipeline in between.
  • Automation. When your workflow hands the saved_paths list to a shell script or another process, the ability to force the exact extension means no assumptions downstream. The tooltip spells out the precedence so you don't get surprised: if custom_suffix is non-empty it wins; otherwise the suffix dropdown is used.

Install and gotchas

Install is the whole pack - same as every Yogurt node. ComfyUI Manager → search ComfyUI-YogurtNodes, or:

cd ComfyUI/custom_nodes
git clone https://github.com/yogurt7771/ComfyUI-YogurtNodes.git
cd ComfyUI-YogurtNodes
pip install -r requirements.txt

Then restart ComfyUI and the node lives under Yogurt Nodes → IO.

Two traps. First, if you pick "Custom" from the dropdown but leave custom_suffix empty, the node has no extension to use - keep them together. Second, JPEG settings don't apply to every format: jpeg_quality only does anything for JPEG-family output, and png_compression is a PNG-only knob. If you switch to webp expecting to tweak quality, you won't find the control here - set extra-style handling outside the node or just accept Pillow's defaults. The tooltips are honest about what each field controls, so read them if a setting seems to do nothing.

CategoryYogurtNodes/IO

Inputs (9)

NameTypeDefaultDescription
imagesIMAGEThe images to save.
output_dirSTRINGThe directory to save the images to, leave blank to save to the ComfyUI output directory.
filename_prefixSTRINGComfyUIThe prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes.
disable_metadataCOMBOfalseDisable saving metadata to the PNG file.
overwriteCOMBOfalseOverwrite existing files.
suffixCOMBO.pngThe file extension to save the images as.
custom_suffixSTRINGThe file extension to save the images as. If this is not empty, the suffix option will be ignored. Otherwise, the suffix option will override above suffix option.
png_compressionINT40–9The level of compression to use for PNG images.
jpeg_qualityINT1000–100The quality of the JPEG image.

Outputs (5)

NameTypeDescription
imagesIMAGE
widthINT
heightINT
batchINT
saved_pathsLIST