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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| file_format | COMBO | 5 options: jpg, png, webp, tif, bmp | |
| output_path | STRING | ./output | — |
| filename_mid | STRING | tmp | — |
| number_prefixopt | BOOLEAN | false | — |
| number_digitsopt | INT | 51–10 | 编号位数,如设置为3则为001格式 |
| qualityopt | INT | 881–100 | JPEG/WebP 质量。数值越高体积通常越大、保存通常越慢。 |
| png_compress_levelopt | INT | 10–9 | PNG 压缩等级。Replicate 场景建议保持较低数值以减少保存耗时。 |
| optimizeopt | BOOLEAN | true | 启用 Pillow optimize。主要影响 JPEG/TIFF。若编码器报错,节点会自动回退到不使用 optimize。 |
| webp_losslessopt | BOOLEAN | false | 启用无损 WebP。通常会更慢且文件更大。 |
| webp_methodopt | INT | 20–6 | WebP 编码方法。越高通常压得更小,但更慢。Replicate 场景建议使用 0-2。 |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| out_path | STRING | — |