Nodes/ComfyUI-Pixaroma/Longest Side Pixaroma
ComfyUI Node

Longest Side Pixaroma

One number to resize, no math, no squashing

By pixaroma·Created 5 months ago·Updated a day ago· 369
Longest Side Pixaroma
  • image
  • image
  • width
  • height

Longest Side Pixaroma is the resizer for when you don't want to think about width and height. Click a size and the longer edge of your picture becomes exactly that, with the other edge following so nothing gets squashed. It works the same for a tall photo or a wide one, so you never have to decide whether you meant width or height - which is why it's the small sibling of Image Resize Pixaroma and not a replacement for it. Reach for Image Resize when you need a width and a height; reach for this when one number should just work.

What you actually set

  • Size tabs - five buttons (864, 1024, 1216, 1536, 2048 by default; type your own in the settings), each rounded to match your step. Click one and the longest side becomes that.
  • Shape chips - keep, 1:1, 16:9, 9:16, 2:3 by default (swap from a palette of every ratio). Picking a shape takes the biggest piece of it out of your picture first, so nothing stretches and no empty bars appear.
  • Snap - a small button steps through Off / 8 / 16 / 32 / 64 and rounds both sides, which is what most models want. Models are fussy about dimensions landing on multiples of 8/16/32/64, and forgetting this is how you get that vague "image size not supported" failure mid-render.

The gear also holds the crop anchor (9 points), whether small pictures may grow, the resample quality, and the node's colour. And it shows the size it will send before you run, reading the picture coming in - so you see the result dimensions while you still have time to change your mind.

Outputs

  • image - the resized picture, cropped first if you picked a shape other than keep.
  • width / height (INT) - the finished dimensions, already rounded to the step if one is set. Wire these into an empty latent or a resolution downstream.

Install

Part of the Pixaroma pack: ComfyUI Manager → search Pixaroma → install → restart, or:

cd ComfyUI/custom_nodes
git clone https://gitlab.com/pixaroma/comfyui-pixaroma.git

No models, no dependencies. Same update gotcha as the whole pack: hard-refresh the browser tab (Ctrl+Shift+R / Cmd+Shift+R) if a node looks stale after an upgrade - the browser caches old node visuals and that's the usual culprit.

The honest take: for a single image whose aspect you want to control precisely, you'll often want the full Image Resize node instead. But for feeding a folder of mixed-size images into a pipeline that wants one canonical size - say, a reference image for a video model - Longest Side is the one-click answer, and its size tabs are genuinely faster than typing dimensions.

Category👑 Pixaroma/✂️ Resize & Crop

Inputs (1)

NameTypeDefaultDescription
imageIMAGEThe picture to resize. Its longer edge becomes the size you picked on the node.

Outputs (3)

NameTypeDescription
imageIMAGEThe resized picture, cropped first if you picked a shape other than keep.
widthINTThe finished width in pixels, already rounded to the step if one is set.
heightINTThe finished height in pixels, already rounded to the step if one is set.