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.
Image Resize Pixaroma
- image
- mask
- image
- mask
- width
- height
- longest_side
◄width—►
◄height—►
◄longest_side—►
Category👑 Pixaroma/✂️ Resize & Crop
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The image to resize. | |
| maskopt | MASK | Optional mask. Resized alongside the image with crisp (nearest) edges. In Pad mode the added border becomes white (the inpaint region). | |
| widthopt | INT | Optional 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. | |
| heightopt | INT | Optional 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_sideopt | INT | Optional 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)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | The resized image. |
| mask | MASK | The resized mask (white = the padded / inpaint area when using Pad). |
| width | INT | Final output width in pixels. |
| height | INT | Final output height in pixels. |
| longest_side | INT | The longer of the output's width and height, whatever the resize produced. Use it when you want the longest dimension without caring about orientation. |