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

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

    NameTypeDefaultDescription
    imageCOMBO1 options: example.png
    resize_byCOMBOscale longer dimensionAspect-ratio-preserving resize policy. The frontend shows only the numeric control used by this mode.
    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