ComfyUI Node
Image Scale By Aspect Ratio (UTK)
A ComfyUI node in UniversalToolkit/Image with 12 inputs and 6 outputs.
Image Scale By Aspect Ratio (UTK)
- image
- mask
- image
- mask
- original_size
- width
- height
- batch_count
◄aspect_ratio▾►
◄proportional_width1►
◄proportional_height1►
◄fit▾►
◄method▾►
◄round_to_multiple▾►
◄scale_to_side▾►
◄scale_to_length1024►
◄background_colorblack►
◄crop_positioncenter►
CategoryUniversalToolkit/Image
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | COMBO | 9 options: original, custom, 1:1, 3:2, 4:3, 16:9, +3 | |
| proportional_width | INT | 11–100000000 | — |
| proportional_height | INT | 11–100000000 | — |
| fit | COMBO | 7 options: stretch, resize, pad, pad_edge, pad_edge_pixel, crop, +1 | |
| method | COMBO | 6 options: lanczos, bicubic, hamming, bilinear, box, nearest | |
| round_to_multiple | COMBO | 8 options: 8, 16, 32, 64, 128, 256, +2 | |
| scale_to_side | COMBO | 6 options: None, longest, shortest, width, height, total_pixel(kilo pixel) | |
| scale_to_length | INT | 10244–100000000 | — |
| background_color | COMBO | black | 9 options: black, white, gray, red, green, blue, +3 |
| crop_position | COMBO | center | 5 options: center, top, bottom, left, right |
| imageopt | IMAGE | — | |
| maskopt | MASK | — |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |
| original_size | BOX | — |
| width | INT | — |
| height | INT | — |
| batch_count | INT | — |