Nodes/ComfyUI-JakeUpgrade/Scale To Resolution JK๐Ÿ‰
ComfyUI Node

Scale To Resolution JK๐Ÿ‰

Scale image to target resolution based on width, height or megapixel constraints.

By jakechaiยทCreated 2 years agoยทUpdated 2 months agoยท 146
Scale To Resolution JK๐Ÿ‰
  • image
  • latent
  • target_width
  • target_height
โ—„directionfalseโ–บ
โ—„target_resolution512โ–บ
โ—„use_target_mega_pixelfalseโ–บ
โ—„target_mega_pixel1.00โ–บ
โ—„multiple_of8โ–บ
Category๐Ÿ‰ JK/๐Ÿ›ฉ๏ธ Image

Inputs (7)

NameTypeDefaultDescription
directionBOOLEANfalseโ€”
target_resolutionINT5128โ€“16384โ€”
use_target_mega_pixelBOOLEANfalseโ€”
target_mega_pixelFLOAT1.000.01โ€“16โ€”
multiple_ofINT80โ€“16โ€”
imageoptIMAGEโ€”
latentoptLATENTโ€”

Outputs (2)

NameTypeDescription
target_widthINTโ€”
target_heightINTโ€”