Nodes/ComfyUI_Mira/Create Canvas H/W only
ComfyUI Node

Create Canvas H/W only

A one-source resolution node

By mirabarukaso·Created 2 years ago·Updated 5 days ago· 206
Create Canvas H/W only
    • Width
    • Height
    Width576
    Height1024

    This is the no-frills version of Mira's canvas node. Create Canvas H/W only does exactly one thing: it holds a Width and a Height and passes them through. No landscape swap, no batch, no HiRes math. If the fuller Create Canvas nodes have more knobs than you want, this is the clean one-in, one-out block.

    It's a Util node from ComfyUI_Mira, mirabarukaso's collection of small workflow helpers. The value here is the same value any "single source of truth for resolution" node gives you: instead of typing 1024 into your latent, your upscaler, your mask, and your crop math separately, you set it once and wire it everywhere. Change it in one place, the whole graph updates. That's the entire pitch, and for a large workflow it's a real one.

    How it works

    There's no mechanism to speak of - it stores two integers and outputs them. The point is graph hygiene, not computation. Think of it as a labeled dimension constant you can route. In a sprawling workflow, having one obvious node that says "this is the resolution" beats hunting through a dozen widgets when you decide to move from 576 to 768.

    Inputs and outputs that matter

    • Width / Height - your resolution, in steps of 8, from 16 up to 4096, defaulting to 576 x 1024.

    Both come straight back out as Width and Height INT outputs. Feed them into Empty Latent Image, resize nodes, mask generators, anywhere a size is expected.

    If you want a one-click orientation swap, reach for the Simple/Normal Create Canvas (it adds a Landscape toggle) instead; if you want batch size and a HiRes multiplier, there's an advanced variant. This basic one is deliberately the smallest of the three.

    Installing it

    ComfyUI Manager: open the Custom Nodes Manager, search ComfyUI_Mira, Install, restart. Manual: cd ComfyUI/custom_nodes && git clone https://github.com/mirabarukaso/ComfyUI_Mira.git, then restart ComfyUI. On a load error, run pip install -r requirements.txt inside the pack folder and restart. Nothing to download beyond the code.

    Common issues

    Basically none. The only "gotcha" is expecting behavior it doesn't have - this variant won't swap orientation or compute HiRes dimensions, because those live in its siblings. If you flipped over here from a tutorial that used the landscape switch and can't find it, you grabbed the wrong Create Canvas; switch to the Simple version.

    The one habit worth forming: actually route these outputs instead of leaving stray hardcoded dimensions elsewhere. The node only pays off if it's genuinely the single source - a graph where half the nodes read from Create Canvas and half have their own typed-in numbers is worse than either, because now you have two truths that will drift apart. Wire it through, and resolution changes become a one-widget edit.

    CategoryMira/Util

    Inputs (2)

    NameTypeDefaultDescription
    WidthINT57616–4096
    HeightINT102416–4096

    Outputs (2)

    NameTypeDescription
    WidthINT
    HeightINT