ComfyUI Node
Mira Image Upscale Calculator
Recalculate upscale factor and resize image if it exceeds pixel limit.
Mira Image Upscale Calculator
- image
- processed_image
- new_upscale_factor
◄target_upscale_factor2.0►
◄limit_megapixels4.0►
◄pixel_alignment8►
◄downscale_methodbicubic►
CategoryMira/SubPack/Image Tiled Upscaler
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input image. | |
| target_upscale_factor | FLOAT | 2.01–16 | Target upscale factor relative to the ORIGINAL image size. |
| limit_megapixels | FLOAT | 4.01–64 | Maximum allowed megapixels for the input image. If exceeded, image is downscaled to fit. |
| pixel_alignment | INT | 88–128 | Pixel alignment for resizing. |
| downscale_method | COMBO | bicubic | Method for downscaling if limit is exceeded. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| processed_image | IMAGE | — |
| new_upscale_factor | FLOAT | — |