Nodes/jlc-comfyui-nodes/ JLC Resize Image
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.

By Damkohler·Created 5 months ago·Updated 27 days ago· 18
 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)

NameTypeDefaultDescription
imageIMAGEIncoming IMAGE tensor to resize. If the upstream connected node deliberately outputs None at runtime, this node passes None through.
resize_byCOMBOscale longer dimensionAspect-ratio-preserving resize policy.
multiplierFLOAT1.000.01–8Scale factor; 2.0 doubles both dimensions.
longer_sizeINT10241–16384Target size of the source image's longer edge.
shorter_sizeINT10241–16384Target size of the source image's shorter edge.
widthINT10241–16384Target width; height is calculated from aspect ratio.
heightINT10241–16384Target height; width is calculated from aspect ratio.
megapixelsFLOAT1.000.01–64Target total megapixels using 1024×1024 per megapixel.
scale_methodCOMBOareaInterpolation method. Area is generally strong for downscaling; Lanczos is often useful for upscaling.
divisible_byINT161–512After aspect-ratio calculation, round width and height down to this multiple. Use 1 to disable.

Outputs (4)

NameTypeDescription
imageIMAGE
maskMASK
widthINT
heightINT