Nodes/Parametric Studio/PSN Aspect Ratio Enforcer
ComfyUI Node

PSN Aspect Ratio Enforcer

Plan aspect-ratio adjustment (crop/pad/resize) for an image/latent tensor.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
PSN Aspect Ratio Enforcer
    • out_width
    • out_height
    • plan_json
    ◄width512►
    ◄height512►
    ◄target_ratio1.000►
    ◄mode▾►
    CategoryParametric/3D

    Inputs (4)

    NameTypeDefaultDescription
    widthINT5121–16384Width in pixels. From 1 to 16384. Default 512.
    heightINT5121–16384Height in pixels. From 1 to 16384. Default 512.
    target_ratioFLOAT1.0000.001–1000Target ratio. From 0.001 to 1000. Default 1.0.
    modeCOMBOMode. One of 3 choices.

    Outputs (3)

    NameTypeDescription
    out_widthINT—
    out_heightINT—
    plan_jsonSTRING—