ComfyUI Node
Image Resize to Total Pixels
A ComfyUI node in image/latent-astronaut with 5 inputs and 3 outputs.
Image Resize to Total Pixels
- image
- image
- width
- height
◄megapixels1.00►
◄increment16►
◄resize_methodstretch►
◄interpolationlanczos►
Categoryimage/latent-astronaut
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| megapixels | FLOAT | 1.000.01–100 | Target size in megapixels (1.0 = 1,000,000 pixels) |
| increment | INT | 161–256 | Dimensions will be multiples of this value |
| resize_method | COMBO | stretch | Stretch distorts aspect ratio; crop maintains it |
| interpolation | COMBO | lanczos | 4 options: lanczos, bicubic, bilinear, nearest |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| width | INT | — |
| height | INT | — |