Nodes/ComfyUI-Pixaroma/Image Resize Pixaroma
ComfyUI Node

Image Resize Pixaroma

Resize an image (and its mask) mid-workflow. Pick a mode - Off, Max megapixels, Longest side, Scale by, Fit inside, Crop to fill, Match aspect ratio, or Pad (add a border for outpainting). Optionally wire a width/height (e.g. from Resolution Pixaroma) to drive the size, or wire a single longest_side to scale the longer edge to that value (portrait or landscape, no need to pick an axis). Outputs image, mask, width, height.

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

Inputs (5)

NameTypeDefaultDescription
imageIMAGEThe image to resize.
maskoptMASKOptional mask. Resized alongside the image with crisp (nearest) edges. In Pad mode the added border becomes white (the inpaint region).
widthoptINTOptional target width (e.g. from Resolution Pixaroma). Wire only width OR only height to scale keeping aspect ratio; wire both for an exact size. While wired, the matching field is locked.
heightoptINTOptional target height (e.g. from Resolution Pixaroma). Wire only width OR only height to scale keeping aspect ratio; wire both for an exact size. While wired, the matching field is locked.
longest_sideoptINTOptional single target for the LONGER side. Wire one number (e.g. from Number Pixaroma) and the image scales so its longest side equals this value, aspect ratio kept - works for portrait or landscape without choosing width or height. Takes priority over width/height when connected.

Outputs (5)

NameTypeDescription
imageIMAGEThe resized image.
maskMASKThe resized mask (white = the padded / inpaint area when using Pad).
widthINTFinal output width in pixels.
heightINTFinal output height in pixels.
longest_sideINTThe longer of the output's width and height, whatever the resize produced. Use it when you want the longest dimension without caring about orientation.