ComfyUI Node
JLC Resize Image
Resize an incoming IMAGE tensor with aspect-ratio-preserving math and final divisible-by alignment. If the connected input evaluates to None, the node deliberately passes None through so downstream ControlNet / Reference nodes can handle disabled-slot behavior correctly.
JLC Resize Image
- image
- image
- mask
- width
- height
◄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 | IMAGE | Incoming IMAGE tensor to resize. If the upstream connected node deliberately outputs None at runtime, this node passes None through. | |
| resize_by | COMBO | scale longer dimension | Aspect-ratio-preserving resize policy. |
| 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 | — |