ComfyUI Node
Image Aspect Ratio Extractor
Extracts aspect ratio from input images with constraints (0.25-4.0). Can output exact ratio or round to common ratios.
Image Aspect Ratio Extractor
- image
- aspect_ratio
◄ratio_typeround to►
◄top_crop0►
◄bottom_crop0►
◄left_crop0►
◄right_crop0►
CategoryImage Resizing/Extract
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| ratio_type | COMBO | round to | 2 options: round to, aspect ratio |
| top_crop | INT | 00–99 | — |
| bottom_crop | INT | 00–99 | — |
| left_crop | INT | 00–99 | — |
| right_crop | INT | 00–99 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| aspect_ratio | STRING | — |