Nodes/ComfyUI-ArchAi3d-Qwen/πŸ“ Qwen Image Scale V2
ComfyUI Node

πŸ“ Qwen Image Scale V2

A ComfyUI node in ArchAi3d/Qwen/Image with 23 inputs and 7 outputs.

By amir84ferdosΒ·Created 10 months agoΒ·Updated 4 months agoΒ· 65
πŸ“ Qwen Image Scale V2
  • image
  • mask
  • image_vl
  • image_latent
  • mask
  • latent_width
  • latent_height
  • stitch_data
  • debug_text
β—„crop_modedisabledβ–Ί
β—„crop_padding64β–Ί
β—„context_factor1.0β–Ί
β—„blend_pixels16β–Ί
β—„aspect_ratio_modeautoβ–Ί
β—„preferred_aspect_ratio16:9 (Panorama)β–Ί
β—„vl_target_area147456β–Ί
β—„vl_divisible_by32β–Ί
β—„latent_target_area1763584β–Ί
β—„latent_divisible_by32β–Ί
β—„latent_area_tolerance0.30β–Ί
β—„vl_use_latent_sourcetrueβ–Ί
β—„vl_ignore_latent_letterboxtrueβ–Ί
β—„vl_ignore_latent_croptrueβ–Ί
β—„vl_upscale_methodareaβ–Ί
β—„vl_cropdisabledβ–Ί
β—„vl_letterboxfalseβ–Ί
β—„latent_upscale_methodlanczosβ–Ί
β—„latent_cropdisabledβ–Ί
β—„latent_letterboxfalseβ–Ί
β—„debugtrueβ–Ί
CategoryArchAi3d/Qwen/Image

Inputs (23)

NameTypeDefaultDescription
imageIMAGEβ€”
crop_modeoptCOMBOdisableddisabled: Use full image (V1 behavior). mask_crop: Crop to mask region with padding/context.
crop_paddingoptINT640–512Fixed pixel padding around mask bounding box.
context_factoroptFLOAT1.01–3Context expansion factor (1.0 = no expansion, 1.5 = 50% extra context). Applied after padding.
blend_pixelsoptINT160–128Feather width for seamless blending in stitch node.
aspect_ratio_modeoptCOMBOautoAuto: Find closest preferred aspect ratio. Manual: Use selected ratio.
preferred_aspect_ratiooptCOMBO16:9 (Panorama)Manually select preferred aspect ratio (only used in manual mode).
vl_target_areaoptINT1474563000–500000Target pixel area for QwenVL output (~147K optimal).
vl_divisible_byoptINT321–256VL dimensions divisible by this number.
latent_target_areaoptINT17635843000–4500000Target pixel area for latent output.
latent_divisible_byoptINT321–256Latent dimensions divisible by this number.
latent_area_toleranceoptFLOAT0.300.1–0.8Flexibility for latent pixel count (Β±%).
vl_use_latent_sourceoptBOOLEANtrueTrue: Use Latent as VL source (pixel-perfect). False: Use original input.
vl_ignore_latent_letterboxoptBOOLEANtrueWhen using Latent source, ignore vl_letterbox setting.
vl_ignore_latent_cropoptBOOLEANtrueWhen using Latent source, ignore vl_crop setting.
vl_upscale_methodoptCOMBOareaResampling algorithm for VL.
vl_cropoptCOMBOdisabledCrop mode for VL output.
vl_letterboxoptBOOLEANfalseAdd black bars to preserve aspect ratio.
latent_upscale_methodoptCOMBOlanczosResampling algorithm for latent.
latent_cropoptCOMBOdisabledCrop mode for latent output. disabled: stretch to fit (no content lost). center: crop to fill frame.
latent_letterboxoptBOOLEANfalseAdd black bars to latent.
maskoptMASKMask for crop mode (white = region to crop) and output scaling.
debugoptBOOLEANtrueShow detailed debug info.

Outputs (7)

NameTypeDescription
image_vlIMAGEβ€”
image_latentIMAGEβ€”
maskMASKβ€”
latent_widthINTβ€”
latent_heightINTβ€”
stitch_dataSTITCH_DATAβ€”
debug_textSTRINGβ€”