StabStitch Crop Resize
The prep node that stops the model eating your resolution
- video_1
- resized
This is the quiet workhorse of the StabStitch family - a utility node that doesn't get the glory, but which the author explicitly tells you to use. The StabStitch models process everything at a fixed internal resolution of 360x480, and if you feed them a 1920x1080 clip they'll just squash it, distorting the image. StabStitch Crop Resize fixes that: it crops your video to the right aspect ratio and then resizes it to the model's target, so you keep composition instead of a squashed mess.
What it does
It's a crop-then-resize in one node, and the crop side matters. The model wants a 4:3-ish 360x480 frame. If your source is wider than that, the node crops away the excess width; if it's taller, it crops the height. The crop_side input decides which side of a wide video gets cut - useful when your subject is framed on one side and you want to keep them in the shot. Then it bilinearly resizes to target_h x target_w.
The inputs that matter
video_1- the clip to prepare, as an IMAGE batch.crop_side-leftorright(defaultleft). Choose based on which side of the frame holds what you want to keep.target_h/target_w- default360x480, which is exactly what the StabStitch models expect. Change these only if you know why - the stitch and stabilize nodes want 360x480.
One output: resized, the prepared IMAGE batch, ready to feed into StabStitch or StabStitch Stabilize.
Installing it
Same pack as always - ComfyUI Manager (search FM_nodes) or:
cd ComfyUI/custom_nodes
git clone https://github.com/FuouM/FM_nodes
then restart. Requirements: torch and einops only. And unlike its siblings, this node needs no model file at all - it's pure tensor math. It's the one StabStitch node that works the moment the pack loads.
Where people get burned
Honestly, there's not much to trip on here - which is the point of a utility node. The only real decision is crop_side: if your subject drifts across the frame, cropping the wrong side can chop them out of the shot. And if you're feeding it already-360x480 video, it's a no-op pass-through (it checks aspect ratio and skips the crop when it's already a match). One thing worth noting: because the StabStitch models downscale internally anyway, the order matters - crop and resize first so you control the composition, then stitch. Skip this node and let the model squash your footage, and you'll wonder why everything looks stretched. It's the difference between a workflow that looks right and one that quietly ruins your aspect ratio.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| video_1 | IMAGE | — | |
| crop_side | COMBO | left | 2 options: left, right |
| target_h | INT | 360 | — |
| target_w | INT | 480 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| resized | IMAGE | — |