ComfyUI Node
JLC Load & Resize Image
Upload or drag-and-drop an image, then resize IMAGE and MASK together with aspect-ratio-preserving math and final divisible-by alignment.
JLC Load & Resize Image
- image
- mask
- width
- height
◄image▾►
◄resize_byscale longer dimension►
◄multiplier1.00►
◄longer_size1024►
◄shorter_size1024►
◄width1024►
◄height1024►
◄megapixels1.00►
◄scale_methodarea►
◄divisible_by16►
Categoryutils/image
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | COMBO | 1 options: example.png | |
| resize_by | COMBO | scale longer dimension | Aspect-ratio-preserving resize policy. The frontend shows only the numeric control used by this mode. |
| multiplier | FLOAT | 1.000.01–8 | Scale factor; 2.0 doubles both dimensions. |
| longer_size | INT | 10241–16384 | Target size of the source image's longer edge. |
| shorter_size | INT | 10241–16384 | Target size of the source image's shorter edge. |
| width | INT | 10241–16384 | Target width; height is calculated from aspect ratio. |
| height | INT | 10241–16384 | Target height; width is calculated from aspect ratio. |
| megapixels | FLOAT | 1.000.01–64 | Target total megapixels using 1024×1024 per megapixel. |
| scale_method | COMBO | area | Interpolation method. Area is generally strong for downscaling; Lanczos is often useful for upscaling. |
| divisible_by | INT | 161–512 | After aspect-ratio calculation, round width and height down to this multiple. Use 1 to disable. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |
| width | INT | — |
| height | INT | — |