Nodes/ComfyUI_MiraSubPack/Mira Image Upscale Calculator
ComfyUI Node

Mira Image Upscale Calculator

Recalculate upscale factor and resize image if it exceeds pixel limit.

By mirabarukaso·Created 8 months ago·Updated 2 months ago· 0
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)

NameTypeDefaultDescription
imageIMAGEInput image.
target_upscale_factorFLOAT2.01–16Target upscale factor relative to the ORIGINAL image size.
limit_megapixelsFLOAT4.01–64Maximum allowed megapixels for the input image. If exceeded, image is downscaled to fit.
pixel_alignmentINT88–128Pixel alignment for resizing.
downscale_methodCOMBObicubicMethod for downscaling if limit is exceeded.

Outputs (2)

NameTypeDescription
processed_imageIMAGE
new_upscale_factorFLOAT