ComfyUI Node
Image: Downscale to Total Pixels (lab)
Downscale an image to match target size in megapuxels. If the image is smaller than the target size, it is kept as is. Note: image may be cropped, to prevent stretching and preserve aspect ratio.
Image: Downscale to Total Pixels (lab)
- image
- image
- width
- height
- actual_size
◄downscale_methodlanczos►
◄megapixels1.0►
◄multiple_of0►
CategoryComfyLab/utils
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| downscale_method | COMBO | lanczos | downscale method |
| megapixels | FLOAT | 1.00–16 | target size in megapixels |
| multiple_of | INT | 0 | if > 0, ensure the dimension are multiple of this number |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | downscaled image |
| width | INT | width |
| height | INT | height |
| actual_size | FLOAT | actual size in MP |