ComfyUI Node
RGBA Multi Save (Swwan)
Saves premultiplied IMAGE output as JPEG, PNG, or WebP. It embeds RGBA Safe Post logic internally only when alpha must be preserved. Otherwise it flattens the image over a background color for fast RGB export.
RGBA Multi Save (Swwan)
- image
- alpha
◄has_alpha—►
◄file_formatpng►
◄alpha_modeauto►
◄filename_prefixRGBA►
◄epsilon0.0010►
◄background_red1.00►
◄background_green1.00►
◄background_blue1.00►
◄jpeg_quality95►
◄webp_quality90►
◄webp_losslessfalse►
◄png_compress_level4►
CategorySwwan/RGBA
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Processed image. If it comes from RGBA Safe Pre, it is usually still premultiplied. | |
| alpha | MASK | Alpha from RGBA Safe Pre. It will be resized automatically to the current image size. | |
| has_alpha | BOOLEAN | Boolean flag from RGBA Safe Pre. Used by auto mode to decide whether alpha should be kept. | |
| file_format | COMBO | png | Output file format. JPEG never keeps alpha. PNG and WebP can keep alpha. |
| alpha_mode | COMBO | auto | auto: keep alpha only for PNG/WebP when has_alpha is true. keep: force alpha-capable save. flatten: composite over background color and save RGB only. |
| filename_prefix | STRING | RGBA | Filename prefix for saved files. |
| epsilonopt | FLOAT | 0.00100.000001–0.1 | Only used when alpha is kept. Prevents divide-by-zero and overbright edges during unpremultiply. |
| background_redopt | FLOAT | 1.000–1 | Background red channel used when flattening alpha to RGB. |
| background_greenopt | FLOAT | 1.000–1 | Background green channel used when flattening alpha to RGB. |
| background_blueopt | FLOAT | 1.000–1 | Background blue channel used when flattening alpha to RGB. |
| jpeg_qualityopt | INT | 951–100 | JPEG encoder quality. Higher values keep more detail and larger files. |
| webp_qualityopt | INT | 901–100 | WebP quality used in lossy mode. |
| webp_losslessopt | BOOLEAN | false | Enable lossless WebP encoding. Usually larger but preserves pixels better. |
| png_compress_levelopt | INT | 40–9 | PNG compression level. Higher values reduce size but may save slower. |
Outputs (0)
No outputs