Nodes/ComfyUI_Swwan/IO Save Image Format (Swwan)
ComfyUI Node

IO Save Image Format (Swwan)

Lightweight format-aware image saver for Replicate-oriented workflows. Keeps only the format parameters that materially affect encode time and file size.

By aining2022·Created 9 months ago·Updated about a month ago· 27
IO Save Image Format (Swwan)
  • image
  • out_path
file_format
output_path./output
filename_midtmp
number_prefixfalse
number_digits5
quality88
png_compress_level1
optimizetrue
webp_losslessfalse
webp_method2
CategorySwwan/IO

Inputs (11)

NameTypeDefaultDescription
imageIMAGE
file_formatCOMBO5 options: jpg, png, webp, tif, bmp
output_pathSTRING./output
filename_midSTRINGtmp
number_prefixoptBOOLEANfalse
number_digitsoptINT51–10编号位数,如设置为3则为001格式
qualityoptINT881–100JPEG/WebP 质量。数值越高体积通常越大、保存通常越慢。
png_compress_leveloptINT10–9PNG 压缩等级。Replicate 场景建议保持较低数值以减少保存耗时。
optimizeoptBOOLEANtrue启用 Pillow optimize。主要影响 JPEG/TIFF。若编码器报错,节点会自动回退到不使用 optimize。
webp_losslessoptBOOLEANfalse启用无损 WebP。通常会更慢且文件更大。
webp_methodoptINT20–6WebP 编码方法。越高通常压得更小,但更慢。Replicate 场景建议使用 0-2。

Outputs (1)

NameTypeDescription
out_pathSTRING