Nodes/ComfyUI-Pixaroma/Resize Crop Pixaroma
ComfyUI Node

Resize Crop Pixaroma

Crop an image to an exact width and height. The image is scaled to completely fill the target size, then the overflow is cropped away from the center, so the result is always exactly the width and height you set, with no stretching or letterboxing. Smaller images are scaled up to fill. Type the size into the width and height fields, or wire them from another node (e.g. Resolution Pixaroma or a Number node). An optional mask is cropped the same way. Outputs image, mask, width, and height - handy for forcing image or video frames to a fixed size like 512x896 or 704x1280.

By pixaroma·Created 5 months ago·Updated 23 days ago· 271
Resize Crop Pixaroma
  • image
  • mask
  • image
  • mask
  • width
  • height
width1024
height1024
Category👑 Pixaroma/✂️ Resize & Crop

Inputs (4)

NameTypeDefaultDescription
imageIMAGEThe image (or batch / video frames) to crop to size.
widthINT10248–16384Target width in pixels. Type a value or wire a number from another node. The arrows step by 8 (AI/video sizes are usually multiples of 8) but you can type any value.
heightINT10248–16384Target height in pixels. Type a value or wire a number from another node. The arrows step by 8 but you can type any value.
maskoptMASKOptional mask. Cropped to the same width and height as the image, with crisp (nearest) edges.

Outputs (4)

NameTypeDescription
imageIMAGEThe cropped image, exactly width x height pixels.
maskMASKThe cropped mask, matching the output image size (blank when no mask is wired in).
widthINTThe output width in pixels.
heightINTThe output height in pixels.