
A utility node for selecting image dimensions from predefined aspect ratios. Reads ratios from a customizable text file, making it easy to add or modify your preferred dimensions.
aspect_ratio
: Dropdown selection of available ratios from the text file
width
: Selected width in pixelsheight
: Selected height in pixels
The node reads from my_aspect_ratios.txt
in the following format:
name, width, height
Example entries:
1024x1024 1:1 square, 1024, 1024
1280x768 5:3 gen3Ready landscape, 1280, 768
768x1280 3:5 gen3Ready portrait, 768, 1280
Default included ratios:
- Square formats (512x512, 768x768, 1024x1024)
- Standard ratios (4:3, 16:9, 3:2)
- Portrait & Landscape variants
- Special formats (Golden ratio, Cinematic, Panoramic)
Note: If the text file is not found, defaults to 1024x1024 square format.