RemapPinch
Squeeze a photo toward its center — the lens effect with three knobs
- REMAP
Pinch is the distortion people usually discover first, because it's the one with an obvious use: pull the whole image in toward a center point, like pressing your thumb into the middle of a photo. It's the "squeeze" filter from every photo editor, and it's the sibling of Stretch (which pushes outward instead). The two nodes share almost identical inputs - this one is the pull, the other is the push.
It belongs to this pack's Remap family, which means it doesn't distort anything by itself: it outputs a REMAP recipe that you feed into the Remap node, which applies it to your source image. The graph is always RemapPinch → Remap → your image.
How it works
For every destination pixel, the node figures out where the pixel sits relative to the chosen center, computes its distance along x and y, and maps that distance through a power curve: sign * (1 - (1 - |d|)^power). With power greater than 1, distances get compressed - points near the center barely move while outer points get pulled in harder, which is exactly the pinch look. The center_x/center_y values (0–1, normalized) let you move the focal point anywhere, not just the middle.
The inputs
power_x/power_y(1–3, default 1) - how strongly to pinch on each axis. Equal values give a symmetric squeeze; different values distort along one axis more than the other (anamorphic pinch).center_x/center_y(0–1, default 0.5) - where the pinch point is. 0.5/0.5 is dead center.
Output: a REMAP. That's it - no image goes in here, so don't expect to preview anything until it's wired into the Remap node.
Where you'd reach for it
The honest use cases are niche but real: subtly pulling a subject's proportions (pinch toward center with a power just above 1 and a low-percentage effect on a face or product shot), the classic "lens suction" transition effect, or counteracting mild stretching when you composite into a differently-proportioned frame. It's also a nice tool for collage work when you want a photo to "recede" into the background of a layout.
Installing it
cd ComfyUI/custom_nodes
git clone https://github.com/bmad4ever/comfyui_bmad_nodes
restart, or search comfyui_bmad_nodes in ComfyUI Manager. OpenCV requirement covers it; no model downloads.
The honest caveat
Power is capped at 3, and honestly that's plenty - at 3 the squeeze is aggressive and you'll start to see the image's edges fold into the center. The real gotcha is expectations: this is a geometric warp, not a content-aware one. Pixels get pulled from wherever the math says, so edges of the image can get cut off or leave black corners depending on how far from center the action is. If the result looks chopped, back the power off or move the center. And remember - it's a generator, so all tweaking happens on the REMAP side; the Remap node just re-applies.
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 | — |