MiniMax Square Image Size
1
- width
- height
Album art is square. That sounds too obvious to need a node, until you're mid-batch and realize you've been generating 768x512 covers because a random latent-size widget drifted. MiniMax Square Image Size is a two-output convenience node: it emits a width and a height that are always equal, from a preset or a custom size, so your FLUX.2 Klein cover branch stays locked at 1:1.
It's one of the pack's "boring utility" nodes, and it earns its place in the example workflow for a specific reason: the artwork dimensions also drive the embedded_cover_size on the smart saver, so the JPG you generate and the cover you embed inside the FLAC/MP3 stay in sync. One decision, one value, everywhere.
Inputs
size_preset-256x256,512x512,1024x1024, orcustom. The tooltip is honest about the tradeoff: larger images cost more VRAM and time. 1024 is a comfortable release-quality square; 512 is fine for embedded art and previews.custom_size- used only when the preset iscustom. A single pixel value from 64 to 4096 (step 64), applied to both dimensions. The values are kept equal by construction, so there's no way to produce a non-square cover from this node.
Outputs
width and height (INT). Wire them into your image-size-aware nodes - in the example workflow that's the FLUX.2 Klein cover generation and the smart saver's embedded-cover size. If your image generation node needs a single "size" widget instead of separate width/height, connect both outputs where the node expects them; some nodes take a combined resolution string, which this node doesn't emit.
Installing it
Pack install via ComfyUI Manager (search "MiniMax Music Production Toolkit") or:
cd ComfyUI/custom_nodes
git clone https://github.com/jplenio/ComfyUI-MiniMax-Music-Production-Toolkit.git
cd ComfyUI-MiniMax-Music-Production-Toolkit
python -m pip install -r requirements.txt
Dependencies: scipy, soundfile, imageio-ffmpeg, mutagen, Pillow. Restart ComfyUI and hard-refresh once.
Gotchas
Not much to trip on - it's a constant generator. The one habit worth forming: if you change the cover size, re-check the embedded-cover size path too. The workflow links them deliberately, so "I made art 1024 but the embedded cover is still 512" usually means you changed one and forgot the other. And remember this node only produces numbers; the actual square crop, if your image source comes out non-square, still has to happen in your image pipeline.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| size_preset | COMBO | 512x512 | Square artwork resolution preset. Larger images cost more VRAM/time. Choose custom to use custom_size instead of a fixed preset. |
| custom_size | INT | 76864–4096 | Square width/height in pixels used only when size_preset is custom. Values are kept equal to guarantee a 1:1 cover image. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| width | INT | — |
| height | INT | — |