Download
1 variant available
400 1 2 3 4 5 6 7 8 90 1 2 3 4 5 6 7 8 9
(3)
Jul 19, 2026
Krea 2
v1.0.0
Prompt Aspect Size Resolver node
Strip trailing
[W:H]from expanded promptsOutput cleaned text + width + height + detected AR
Megapixels / default AR / divisible_by widgets
Optional
[[[/]]]→{/}JSON brace restoreCompanion for UW Modular Advanced wildcards (works with any
[W:H]prompt)
Show more

20 1 2 3 4 5 6 7 8 9
180 1 2 3 4 5 6 7 8 90 1 2 3 4 5 6 7 8 9
Prompt Aspect Size Resolver (ComfyUI)
v1.0.0 · Companion node for aspect-marked wildcard prompts
A small ComfyUI utility that sits after Impact Pack wildcard expansion.
It:
Reads a trailing aspect marker like
[3:4]or[16:9]from the expanded promptStrips that marker so it never hits CLIP
Computes width / height from your megapixel target
Optionally restores JSON braces (
[[[/]]]→{/}) for JSON-style templates
Built to pair with UW Modular NSFW Wildcards (Advanced zip), but it works with any prompt that ends in [W:H].
Wire it like this
ImpactWildcardProcessor → Prompt Aspect Size Resolver → CLIP (cleaned_text) + Empty Latent (width / height)
Optional: send detected_ar to a ShowText node for debugging.
Widgets
megapixels — target image size budget (set per model / workflow)
default_aspect_ratio — used when no trailing marker is present (default
3:4)divisible_by — snap W/H (default
16)restore_json_braces — on by default for JSON wildcard templates
Install
Download the zip from this page
Extract into
ComfyUI/custom_nodes/ComfyUI-PromptAspectSize/Restart ComfyUI
Add node: Prompt Aspect Size Resolver (category
utils/prompt)
Works with
ComfyUI + Impact Pack (
ImpactWildcardProcessor)UW Modular Advanced wildcards (markers already in templates)
Any hand-written or wildcard prompt ending in
[W:H]
Supported marker examples: [9:16], [2:3], [3:4], [4:3], [3:2], [16:9], [23:9]
Related pack
For the full photoreal Krea 2 wildcard framework (Basic + Advanced), see my UW Modular NSFW Wildcards model page and use the Advanced zip with this node.
Notes
If you skip this node, use the Basic wildcard zip (no markers) or markers may leak into CLIP text.
This node does not generate images by itself — it’s prompt post-processing + size math only.
Changelog
v1.0.0 — Initial public release: PromptAspectSizeResolver (clean text + W/H + detected AR + optional JSON brace restore).
Version notes / changes field (short)
v1.0.0
Prompt Aspect Size Resolver node
Strip trailing
[W:H]from expanded promptsOutput cleaned text + width + height + detected AR
Megapixels / default AR / divisible_by widgets
Optional
[[[/]]]→{/}JSON brace restoreCompanion for UW Modular Advanced wildcards (works with any
[W:H]prompt)
File note on the upload
ComfyUI-PromptAspectSize-v1.0.0.zip — Extract to custom_nodes/ComfyUI-PromptAspectSize/. Requires ComfyUI restart. Use after ImpactWildcardProcessor.
