RemapStretch
Push a photo outward from its center — the bulge that pinch's inverse gives you
- REMAP
Stretch is the other half of the pinch/stretch pair in this pack's Remap family, and the two are so close that the source code literally shares its input definitions. Pinch pulls the image toward a center point; Stretch pushes it away, inflating the middle of the picture outward like a balloon. Think magnifying-glass bulge without the glass. Same wiring, same three knobs, opposite direction of travel.
And like every node in this family, it doesn't touch a pixel itself. It outputs a REMAP recipe; you feed that into the Remap node along with your source image, and that's where the distortion actually happens. RemapStretch → Remap → image.
How it works
Mechanically it's the pinch math with the powers inverted - the source literally calls the shared pinch function with (1/power_x, 1/power_y). Inverting the exponent turns the inward pull into an outward push. Distances near the center get magnified (the middle of the image stretches up), and the peripheral regions thin out to compensate. As with pinch, center_x/center_y (0–1, default 0.5) place the focal point, and independent power_x/power_y values let you bulge asymmetrically.
The inputs
power_x/power_y(1–3, default 1) - stretch strength per axis.center_x/center_y(0–1, default 0.5) - the bulge point.
Output: REMAP.
Where you'd reach for it
The classic uses are the ones that need the middle to dominate: making a subject at the center of a frame feel larger and more present, barrel-lens-style emphasis on a product or face, or stylized comic/cartoon proportions. It's also the tool for "pushing" a face's center features slightly larger in a subtle way - power just above 1 does a gentle job that reads as a wider lens rather than a warp. Same math family, so this is also your go-to when pinch is pulling too much and you want the reverse feel.
Installing it
cd ComfyUI/custom_nodes
git clone https://github.com/bmad4ever/comfyui_bmad_nodes
restart, or grab comfyui_bmad_nodes via ComfyUI Manager. Covered by the pack's OpenCV requirement; no models to download.
The honest caveat
Stretch eats the frame. Pushing pixels outward means the outer regions get squeezed and the corners can pull away, leaving black edges that you'll need to crop or fill. There's no auto-crop here - the Remap node returns the full distorted frame, so budget for trimming in your workflow. And since it's the same power curve, the max of 3 is plenty; above that you're not getting more bulge, you're getting more empty corners. Start at 1.2–1.5 and inspect before you push further.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| power_x | FLOAT | 1.001–3 | — |
| power_y | FLOAT | 1.001–3 | — |
| center_x | FLOAT | 0.500–1 | — |
| center_y | FLOAT | 0.500–1 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| REMAP | REMAP | — |