ComfyUI Node
PVL Image Resize
Resizes the image to the specified width and height. Keep proportions maintains the aspect ratio of the image. Downsize only prevents upscaling when enabled. Supports RGB and RGBA images.
PVL Image Resize
- image
- IMAGE
- width
- height
◄width512►
◄height512►
◄upscale_method▾►
◄keep_proportionresize►
◄pad_color0, 0, 0►
◄crop_positioncenter►
◄divisible_by2►
◄downsize_onlyfalse►
◄devicecpu►
CategoryPVL_tools
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 5120–8192 | — |
| height | INT | 5120–8192 | — |
| upscale_method | COMBO | 5 options: nearest-exact, bilinear, area, bicubic, lanczos | |
| keep_proportion | COMBO | resize | 5 options: stretch, resize, pad, pad_edge, crop |
| pad_color | STRING | 0, 0, 0 | Color to use for padding (RGB or RGBA). Example: '255, 255, 255, 0' for transparent white. |
| crop_position | COMBO | center | 5 options: center, top, bottom, left, right |
| divisible_by | INT | 20–512 | — |
| downsize_only | BOOLEAN | false | Only resize if target dimensions are smaller than original. |
| imageopt | IMAGE | — | |
| deviceopt | COMBO | cpu | 2 options: cpu, gpu |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| width | INT | — |
| height | INT | — |