Zum Inhalt springen
Node packÜberprüftExtern
Quelle öffnen

ComfyUI-AspectRatioSizePicker

ComfyUI node: aspect-ratio dropdown + long-edge slider + invert toggle for text-to-image sizing, with a PORTRAIT/LANDSCAPE info preview and common long-edge reference.

Betreuer@EternalShade3DC · adoptionBewertung

Paketprofil

Status
Überprüft
Verleger
@EternalShade3D
Quelle
GitHub

README

Aspect Ratio Size Picker

Python ComfyUI License

A single, focused ComfyUI node for picking text-to-image dimensions without fiddling with manual width/height fields or chaining resize + rotate nodes.

Category: EternalShade3D → Aspect Ratio Size Picker

icon

Why

Most size-picking nodes either force you into megapixel math or are buried inside image-resize pipelines. This node does exactly one thing: pick a target canvas size for an Empty Latent Image node from three intuitive controls — and it tells you, in plain text, what you just selected.

Controls

ControlTypeNotes
Aspect RatioDropdown1:1 (Square), 4:3 (Standard), 3:2 (Classic 35mm Film), 5:4 (Large Format), 16:9 (Widescreen), 16:10 (Widescreen)
Long EdgeSlider (INT)64–8192, step 8. Always maps to the larger dimension.
InvertToggleSwaps the ratio (e.g. 4:3 → 3:4, 16:9 → 9:16).

Outputs

  • width (INT)
  • height (INT)
  • info (STRING) — a live text preview so you can see what the node resolved:
=== PORTRAIT ===
16:9  ->  INVERTED  ->  9:16
Size: 1080 x 1920
Long edge 1920 = Full HD long edge / YouTube 1080p
Common long edges: 720, 1080, 1200, 1280, 1440, 1920, 2048, 2160, 2560, 3508, 3840, 4096, 5120, 7680
  • The === PORTRAIT / LANDSCAPE / SQUARE === line is a semi-title so you immediately know the orientation.
  • The inverted preview shows the original ratio → flipped ratio when Invert is on.
  • The Common long edges line is a reminder of standard photography / video / social sizes.

Both width and height are snapped to a multiple of 8 for ComfyUI latent alignment.

Example

Aspect Ratio Size Picker ──width──▶ Empty Latent Image
                       └─height─┘
                       └─info────▶ (preview text, optional)

Wire width and height straight into an Empty Latent Image node's width/height inputs.

Common long-edge reference

Long edgeUsed for
720HD 720p
1080Full HD / Social base (IG, FB, TikTok, YT, X)
1200Facebook shared link / high-res social
1280HD video / YouTube thumbnail
1440QHD short edge
1920Full HD long edge / YouTube 1080p
2048Photo print @300dpi (~4x6 in)
21604K short edge
2560QHD (1440p) long edge
3508A3 print @300dpi
38404K UHD long edge
4096DCI 4K
51205K
76808K UHD

Install

ComfyUI Manager (registry)

Search Aspect Ratio Size Picker and install.

Manual

cd ComfyUI/custom_nodes
git clone https://github.com/EternalShade3D/ComfyUI-AspectRatioSizePicker.git
# restart ComfyUI

License

MIT © EternalShade3D

Knoten in diesem Paket

1 Knoten
  • AspectRatioSizePicker

Quellen

4 Quellen
GitHubQuelleVersion c5b1cc523ef0316bbfc15b732d1faae0bc42677a
github.com/EternalShade3D/ComfyUI-AspectRatioSizePicker

Verifiziert 17. Okt.

GitHubQuelleVersion main
github.com/EternalShade3D/ComfyUI-AspectRatioSizePicker

Verifiziert 4. Nov.

Quellenauszüge

2 Auszüge

Source context: Repo EternalShade3D/ComfyUI-AspectRatioSizePicker

Source context: Repo EternalShade3D/ComfyUI-AspectRatioSizePicker