ComfyUI Node
π Qwen Image Scale V2
A ComfyUI node in ArchAi3d/Qwen/Image with 23 inputs and 7 outputs.
π 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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | β | |
| crop_modeopt | COMBO | disabled | disabled: Use full image (V1 behavior). mask_crop: Crop to mask region with padding/context. |
| crop_paddingopt | INT | 640β512 | Fixed pixel padding around mask bounding box. |
| context_factoropt | FLOAT | 1.01β3 | Context expansion factor (1.0 = no expansion, 1.5 = 50% extra context). Applied after padding. |
| blend_pixelsopt | INT | 160β128 | Feather width for seamless blending in stitch node. |
| aspect_ratio_modeopt | COMBO | auto | Auto: Find closest preferred aspect ratio. Manual: Use selected ratio. |
| preferred_aspect_ratioopt | COMBO | 16:9 (Panorama) | Manually select preferred aspect ratio (only used in manual mode). |
| vl_target_areaopt | INT | 1474563000β500000 | Target pixel area for QwenVL output (~147K optimal). |
| vl_divisible_byopt | INT | 321β256 | VL dimensions divisible by this number. |
| latent_target_areaopt | INT | 17635843000β4500000 | Target pixel area for latent output. |
| latent_divisible_byopt | INT | 321β256 | Latent dimensions divisible by this number. |
| latent_area_toleranceopt | FLOAT | 0.300.1β0.8 | Flexibility for latent pixel count (Β±%). |
| vl_use_latent_sourceopt | BOOLEAN | true | True: Use Latent as VL source (pixel-perfect). False: Use original input. |
| vl_ignore_latent_letterboxopt | BOOLEAN | true | When using Latent source, ignore vl_letterbox setting. |
| vl_ignore_latent_cropopt | BOOLEAN | true | When using Latent source, ignore vl_crop setting. |
| vl_upscale_methodopt | COMBO | area | Resampling algorithm for VL. |
| vl_cropopt | COMBO | disabled | Crop mode for VL output. |
| vl_letterboxopt | BOOLEAN | false | Add black bars to preserve aspect ratio. |
| latent_upscale_methodopt | COMBO | lanczos | Resampling algorithm for latent. |
| latent_cropopt | COMBO | disabled | Crop mode for latent output. disabled: stretch to fit (no content lost). center: crop to fill frame. |
| latent_letterboxopt | BOOLEAN | false | Add black bars to latent. |
| maskopt | MASK | Mask for crop mode (white = region to crop) and output scaling. | |
| debugopt | BOOLEAN | true | Show detailed debug info. |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| image_vl | IMAGE | β |
| image_latent | IMAGE | β |
| mask | MASK | β |
| latent_width | INT | β |
| latent_height | INT | β |
| stitch_data | STITCH_DATA | β |
| debug_text | STRING | β |