ComfyUI Node
Eses Image Resize
A ComfyUI node in Eses Nodes/Image with 19 inputs and 5 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| scale_mode | COMBO | 6 options: multiplier, megapixels, target_width, target_height, both_dimensions, megapixels_with_ar | |
| interpolation_method | COMBO | 5 options: area, bilinear, bicubic, lanczos, nearest-neighbor | |
| upscale_modelopt | UPSCALE_MODEL | — | |
| maskopt | MASK | — | |
| ref_imageopt | IMAGE | If connected, use this image's dimensions as the target width and height. | |
| ref_maskopt | MASK | If connected, use this mask's dimensions as the target. Overridden by Reference Image. | |
| multiplieropt | FLOAT | 1.000.01–100 | Multiplies original dimensions by this factor (Scale Mode: ratio) |
| megapixelsopt | FLOAT | 2.000.01–100 | Sets target total pixels in megapixels (Scale Mode: megapixels/megapixels_with_ar) |
| target_widthopt | INT | 5128–8192 | Target width in pixels (Scale Mode: target_width/both_dimensions) |
| target_heightopt | INT | 5128–8192 | Target height in pixels (Scale Mode: target_height/both_dimensions) |
| ar_widthopt | INT | 161–4096 | Aspect ratio width component (Scale Mode: megapixels_with_ar) |
| ar_heightopt | INT | 91–4096 | Aspect ratio height component (Scale Mode: megapixels_with_ar) |
| keep_aspect_ratioopt | BOOLEAN | true | If true, preserves original aspect ratio when using target_width/height modes (otherwise may distort) |
| crop_to_fitopt | BOOLEAN | false | Scales and crops the image to fill the target dimensions (no letterboxing). Takes priority over 'Fit to Frame'. |
| fit_to_frameopt | BOOLEAN | false | Scales the image to fit entirely within the target dimensions, adding colored bars (letterboxing). Overridden by 'Crop to Fit'. |
| letterbox_coloropt | STRING | 0,0,0 | Color for letterboxing/padding (Hex: RRGGBB, RRGGBBAA; or RGB/RGBA: 255,255,255,255). Default: Black. |
| letterbox_mask_is_whiteopt | BOOLEAN | false | If 'Fit to Frame' is active, sets the padded area in the output mask to white (255); otherwise, it's black (0). |
| divisible_byopt | INT | 80–64 | Rounds final dimensions to be divisible by this number. Set to 0 to disable. |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |
| width | INT | — |
| height | INT | — |
| metadata | STRING | — |