Skip to content

Conversation

@christian-byrne
Copy link
Contributor

Summary

Add a ResolutionSelector node that calculates width and height from aspect ratio presets and megapixel targets.

Changes

  • New node: ResolutionSelector in comfy_extras/nodes_resolution.py
    • 8 aspect ratio presets (1:1, 3:2, 4:3, 16:9, 21:9, and portrait variants)
    • Megapixel input (0.1 - 16.0, default 1.0)
    • Outputs width/height as multiples of 8
  • Registration: Added to extras_files in nodes.py

Review Focus

  • Aspect ratio preset selection and naming
  • Category placement (utils)

Notion Task: https://www.notion.so/comfy-org/Resolution-and-Aspect-Ratio-Node-2f16d73d365081779882df3704b1a561

@christian-byrne christian-byrne self-assigned this Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants