ComfyUI Node
Resize Power of 2
Resizes or crops image dimensions to power of 2 for game engine compatibility.
Resize Power of 2
- image
- image
◄modeNearest►
◄methodResize►
◄crop_positionCenter►
◄resampleLanczos►
CategoryLeputen-Utils/Utility
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The image tensor to resize or crop. | |
| mode | COMBO | Nearest | Nearest: closest power of 2. Up: next larger. Down: previous smaller. |
| methodopt | COMBO | Resize | Resize: scale image to new dimensions. Crop: cut image to new dimensions. |
| crop_positionopt | COMBO | Center | Crop alignment when using Crop method. |
| resampleopt | COMBO | Lanczos | Resampling filter for resize. Lanczos: highest quality. Bilinear: balanced. Nearest: pixelated. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |