ComfyUI Node
Auto Aspect Ratio Crop (SDXL/Flux)
Crop an image to a target SDXL/Flux aspect ratio (center/face/smart).
Auto Aspect Ratio Crop (SDXL/Flux)
- image
- cropped_image
- original_width
- original_height
◄target_ratio▾►
◄crop_mode▾►
◄custom_w1024►
◄custom_h1024►
CategoryParametric/Image
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The input image. | |
| target_ratio | COMBO | Target ratio. One of 6 choices. | |
| crop_mode | COMBO | Crop mode. One of 3 choices. | |
| custom_wopt | INT | 10248–8192 | Custom w. From 8 to 8192. Default 1024. |
| custom_hopt | INT | 10248–8192 | Custom h. From 8 to 8192. Default 1024. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| cropped_image | IMAGE | — |
| original_width | INT | — |
| original_height | INT | — |