ComfyUI Node
Image Scale Megapixel
Scale image to target megapixels. - fill: Scale to exactly reach target (may change aspect ratio) - fit: Scale to fit within target (maintains aspect ratio) - crop: Scale to cover target and crop (maintains aspect ratio)
Image Scale Megapixel
- image
- image
- width
- height
◄megapixels1.00►
◄round_to8►
◄methodfit►
◄upscale_modelanczos►
CategoryXJNodes/image
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| megapixels | FLOAT | 1.000.01–16 | — |
| round_to | COMBO | 8 | 5 options: 8, 16, 32, 64, 128 |
| method | COMBO | fit | 3 options: fill, fit, crop |
| upscale_mode | COMBO | lanczos | 5 options: lanczos, bicubic, bilinear, nearest-exact, area |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| width | INT | — |
| height | INT | — |