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.

By loz2754·Created 7 months ago·Updated about a month ago· 4
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)

NameTypeDefaultDescription
img2imgBOOLEANfalseEnable/disable Img2Img mode.
denoise_strengthFLOAT1.000–1Set the denoise strength for Img2Img.
new_widthINT10240–2048Set 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_heightINT10240–2048Set 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_widthINTThe 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_heightINTThe height of the latent space (from EmptyLatentImage node). The longest side of the image will be resized to this length. Aspect ratio is preserved.
imageCOMBOSelect the image to use for Img2Img.
max_num_wordsINT00–32Maximum number of words to keep for both filename outputs. Set to 0 for no limit.
vaeVAEThe VAE to use for encoding the image to latent space.
empty_latentLATENTThe empty latent image to use when Img2Img is disabled.

Outputs (9)

NameTypeDescription
booleanBOOLEAN
IMAGEIMAGE
MASKMASK
latentLATENT
filenameSTRING
cleaned filenameSTRING
widthINT
heightINT
denoise strengthFLOAT