Skip to content

Image Input/Output ​

Load and save images in ComfyUI.

LoadImage ​

Load image files for workflow.

Inputs ​

InputTypeDescription
(none)-File selection

Parameters ​

ParameterTypeDescription
imagefileImage file

Outputs ​

OutputTypeDescription
IMAGEimageLoaded image
MASKmaskAlpha channel as mask

Supported Formats ​

FormatExtensionNotes
PNG.pngRecommended
JPEG.jpg, .jpegLossy
WebP.webpGood compression
BMP.bmpUncompressed

RGBA Images ​

Load PNG with alpha channel to get mask:

LoadImage (RGBA.png)
    ↓ IMAGE → processing
    ↓ MASK → inpainting mask

SaveImage ​

Save generated images.

Inputs ​

InputTypeDescription
imagesimageImage to save
maskmaskOptional mask

Parameters ​

ParameterTypeDescription
filename_prefixstringOutput filename prefix

Output Location ​

ComfyUI/output/

ImageScale ​

Scale image to different resolution.

Inputs ​

InputTypeDescription
imageimageImage to scale

Parameters ​

ParameterTypeDescription
methoddropdownScale algorithm
widthintTarget width
heightintTarget height

Scale Methods ​

MethodQualitySpeed
nearestLowFastest
bilinearMediumFast
lanczosHighMedium
areaHighSlow
bicubicHighMedium

ImageCrop ​

Crop image to specific region.

Inputs ​

InputTypeDescription
imageimageImage to crop

Parameters ​

ParameterTypeDescription
xintLeft position
yintTop position
widthintCrop width
heightintCrop height

ImagePad ​

Extend image with new content (outpainting).

Inputs ​

InputTypeDescription
imageimageBase image
maskmaskAreas to fill

Parameters ​

ParameterTypeDescription
leftintPixels to add left
topintPixels to add top
rightintPixels to add right
bottomintPixels to add bottom

ImageBlend ​

Blend two images together.

Inputs ​

InputTypeDescription
image1imageFirst image
image2imageSecond image
blendfloatBlend strength (0-1)

Next Steps ​