ComfyUI Node
PSN Aspect Ratio Enforcer
Plan aspect-ratio adjustment (crop/pad/resize) for an image/latent tensor.
PSN Aspect Ratio Enforcer
- out_width
- out_height
- plan_json
◄width512►
◄height512►
◄target_ratio1.000►
◄mode▾►
CategoryParametric/3D
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 5121–16384 | Width in pixels. From 1 to 16384. Default 512. |
| height | INT | 5121–16384 | Height in pixels. From 1 to 16384. Default 512. |
| target_ratio | FLOAT | 1.0000.001–1000 | Target ratio. From 0.001 to 1000. Default 1.0. |
| mode | COMBO | Mode. One of 3 choices. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| out_width | INT | — |
| out_height | INT | — |
| plan_json | STRING | — |