ComfyUI Node
Scale To Resolution JK๐
Scale image to target resolution based on width, height or megapixel constraints.
Scale To Resolution JK๐
- image
- latent
- target_width
- target_height
โdirectionfalseโบ
โtarget_resolution512โบ
โuse_target_mega_pixelfalseโบ
โtarget_mega_pixel1.00โบ
โmultiple_of8โบ
Category๐ JK/๐ฉ๏ธ Image
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| direction | BOOLEAN | false | โ |
| target_resolution | INT | 5128โ16384 | โ |
| use_target_mega_pixel | BOOLEAN | false | โ |
| target_mega_pixel | FLOAT | 1.000.01โ16 | โ |
| multiple_of | INT | 80โ16 | โ |
| imageopt | IMAGE | โ | |
| latentopt | LATENT | โ |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| target_width | INT | โ |
| target_height | INT | โ |