Nodes/EsesImageResize/Eses Image Resize
ComfyUI Node

Eses Image Resize

A ComfyUI node in Eses Nodes/Image with 19 inputs and 5 outputs.

By quasiblob·Created about a year ago·Updated 10 months ago· 49
Eses Image Resize
  • image
  • upscale_model
  • mask
  • ref_image
  • ref_mask
  • IMAGE
  • MASK
  • width
  • height
  • metadata
scale_mode
interpolation_method
multiplier1.00
megapixels2.00
target_width512
target_height512
ar_width16
ar_height9
keep_aspect_ratiotrue
crop_to_fitfalse
fit_to_framefalse
letterbox_color0,0,0
letterbox_mask_is_whitefalse
divisible_by8
CategoryEses Nodes/Image

Inputs (19)

NameTypeDefaultDescription
imageIMAGE
scale_modeCOMBO6 options: multiplier, megapixels, target_width, target_height, both_dimensions, megapixels_with_ar
interpolation_methodCOMBO5 options: area, bilinear, bicubic, lanczos, nearest-neighbor
upscale_modeloptUPSCALE_MODEL
maskoptMASK
ref_imageoptIMAGEIf connected, use this image's dimensions as the target width and height.
ref_maskoptMASKIf connected, use this mask's dimensions as the target. Overridden by Reference Image.
multiplieroptFLOAT1.000.01–100Multiplies original dimensions by this factor (Scale Mode: ratio)
megapixelsoptFLOAT2.000.01–100Sets target total pixels in megapixels (Scale Mode: megapixels/megapixels_with_ar)
target_widthoptINT5128–8192Target width in pixels (Scale Mode: target_width/both_dimensions)
target_heightoptINT5128–8192Target height in pixels (Scale Mode: target_height/both_dimensions)
ar_widthoptINT161–4096Aspect ratio width component (Scale Mode: megapixels_with_ar)
ar_heightoptINT91–4096Aspect ratio height component (Scale Mode: megapixels_with_ar)
keep_aspect_ratiooptBOOLEANtrueIf true, preserves original aspect ratio when using target_width/height modes (otherwise may distort)
crop_to_fitoptBOOLEANfalseScales and crops the image to fill the target dimensions (no letterboxing). Takes priority over 'Fit to Frame'.
fit_to_frameoptBOOLEANfalseScales the image to fit entirely within the target dimensions, adding colored bars (letterboxing). Overridden by 'Crop to Fit'.
letterbox_coloroptSTRING0,0,0Color for letterboxing/padding (Hex: RRGGBB, RRGGBBAA; or RGB/RGBA: 255,255,255,255). Default: Black.
letterbox_mask_is_whiteoptBOOLEANfalseIf 'Fit to Frame' is active, sets the padded area in the output mask to white (255); otherwise, it's black (0).
divisible_byoptINT80–64Rounds final dimensions to be divisible by this number. Set to 0 to disable.

Outputs (5)

NameTypeDescription
IMAGEIMAGE
MASKMASK
widthINT
heightINT
metadataSTRING