ComfyUI Node
Img2Img
Provides a comprehensive Img2Img workflow, allowing you to switch between txt2img and img2img modes. It handles image loading, resizing, and encoding into the latent space, providing essential outputs for further processing.
Img2Img
- vae
- empty_latent
- boolean
- IMAGE
- MASK
- latent
- filename
- cleaned filename
- width
- height
- denoise strength
◄img2imgfalse►
◄denoise_strength1.00►
◄new_width1024►
◄new_height1024►
◄latent_width—►
◄latent_height—►
◄image▾►
◄max_num_words0►
CategoryAUN Nodes/Image
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| img2img | BOOLEAN | false | Enable/disable Img2Img mode. |
| denoise_strength | FLOAT | 1.000–1 | Set the denoise strength for Img2Img. |
| new_width | INT | 10240–2048 | Set the new width for the image when Img2Img is enabled. The longest side of the image will be resized to this length. Aspect ratio is preserved. |
| new_height | INT | 10240–2048 | Set the new height for the image when Img2Img is enabled. The longest side of the image will be resized to this length. Aspect ratio is preserved. |
| latent_width | INT | The width of the latent space (from EmptyLatentImage node). The longest side of the image will be resized to this length. Aspect ratio is preserved. | |
| latent_height | INT | The height of the latent space (from EmptyLatentImage node). The longest side of the image will be resized to this length. Aspect ratio is preserved. | |
| image | COMBO | Select the image to use for Img2Img. | |
| max_num_words | INT | 00–32 | Maximum number of words to keep for both filename outputs. Set to 0 for no limit. |
| vae | VAE | The VAE to use for encoding the image to latent space. | |
| empty_latent | LATENT | The empty latent image to use when Img2Img is disabled. |
Outputs (9)
| Name | Type | Description |
|---|---|---|
| boolean | BOOLEAN | — |
| IMAGE | IMAGE | — |
| MASK | MASK | — |
| latent | LATENT | — |
| filename | STRING | — |
| cleaned filename | STRING | — |
| width | INT | — |
| height | INT | — |
| denoise strength | FLOAT | — |