Nodes/Best Resolution/Crop-Pad Strategy (Best-Res)
ComfyUI Node

Crop-Pad Strategy (Best-Res)

'strategy' selector for "Upscaled Crop/Pad" node in "Best Resolution" pack.

By Lex-DRL·Created about a year ago·Updated 4 months ago· 14
Crop-Pad Strategy (Best-Res)
    • strategy
    strategypad only
    CategoryBest Resolution

    Inputs (1)

    NameTypeDefaultDescription
    strategyCOMBOpad onlyIf the upscaled resolution can't be achieved by uniform scaling of the initial-res, how to tweak the image to get there: • pad only - upscale the image to fit it into the desired frame on one side, then add missing pixels on the other one for outpaint. • crop only - upscale the image to fill the entire frame, then crop extra pixels on one side. • nearest - automatically choose one of the above, to crop/pad the least number of pixels (by area). • exact-upscale - follow the provided upscale-value precisely. This is the only option that uses it. Also, it's the only one that might require both outpainting and crop. In case when both are required, the output values assume this order: upscale -> crop -> pad.

    Outputs (1)

    NameTypeDescription
    strategypad only,crop only,nearest,exact-upscale