Nodes/ComfyUI-Leputen-Utils/Resize Power of 2
ComfyUI Node

Resize Power of 2

Resizes or crops image dimensions to power of 2 for game engine compatibility.

By lilquail·Created 8 months ago·Updated 8 months ago· 1
Resize Power of 2
  • image
  • image
modeNearest
methodResize
crop_positionCenter
resampleLanczos
CategoryLeputen-Utils/Utility

Inputs (5)

NameTypeDefaultDescription
imageIMAGEThe image tensor to resize or crop.
modeCOMBONearestNearest: closest power of 2. Up: next larger. Down: previous smaller.
methodoptCOMBOResizeResize: scale image to new dimensions. Crop: cut image to new dimensions.
crop_positionoptCOMBOCenterCrop alignment when using Crop method.
resampleoptCOMBOLanczosResampling filter for resize. Lanczos: highest quality. Bilinear: balanced. Nearest: pixelated.

Outputs (1)

NameTypeDescription
imageIMAGE