ComfyUI Node
Crop-Pad Strategy (Best-Res)
'strategy' selector for "Upscaled Crop/Pad" node in "Best Resolution" pack.
Crop-Pad Strategy (Best-Res)
- strategy
◄strategypad only►
CategoryBest Resolution
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| strategy | COMBO | pad only | If 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)
| Name | Type | Description |
|---|---|---|
| strategy | pad only,crop only,nearest,exact-upscale | — |