Comfy-Org/ComfyUI · error · ValueError
Image area must be between {MIN_AREA} (512x512) and {MAX_ARE
Error message
Image area must be between {MIN_AREA} (512x512) and {MAX_AREA} (2560x2560) pixels; got {width}x{height} = {width * height}. What it means
Error "Image area must be between {MIN_AREA} (512x512) and {MAX_AREA} (2560x2560) pixels; got {width}x{height} = {width * height}." thrown in Comfy-Org/ComfyUI.
Source
Thrown at comfy_api_nodes/nodes_qwen.py:63
prev_end = match.end()
parts.append(prompt[pos:])
return "".join(parts)
def _validate_size(width: int, height: int) -> None:
if not MIN_AREA <= width * height <= MAX_AREA:
raise ValueError(
f"Image area must be between {MIN_AREA} (512x512) and {MAX_AREA} (2560x2560) pixels; "
f"got {width}x{height} = {width * height}."
)View on GitHub (pinned to 1c6d8d45b3)
Solutions
- Resize the image so its area is between 512x512 and 2560x2560 pixels.
When it happens
Trigger: Thrown at comfy_api_nodes/nodes_qwen.py:63 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Comfy-Org/ComfyUI@1c6d8d45b3 (2026-08-14).
Data as JSON: /api/errors/53db7ac10d854bc9.
Report an issue: GitHub.