Nodes/ComfyUI/Flip Image
ComfyUI Node Runs on cloud

Flip Image

Mirror an image horizontally or vertically

By Comfy-Org·Created 4 years ago·Updated 15 days ago· 121,575
Flip Image
  • image
  • IMAGE
flip_method

ImageFlip does exactly what the name says: it mirrors an image - left-to-right, top-to-bottom, or both. No settings beyond picking the axis, no surprises. It's the kind of one-line utility you drop into a graph when you need to flip a reference, mirror a composition, or generate a mirrored variant of something you already made.

One thing worth knowing up front: this is a core ComfyUI node (it lives in core's comfy_extras.nodes_images), so there's nothing to install - a stock ComfyUI already has it under the image transform menu. If you came here to download it, you don't need to.

How it works

It flips the pixel array along the axis you choose. Horizontal flip mirrors left/right; vertical flip mirrors top/bottom. It's a lossless geometric operation - no interpolation, no quality change, just a rearrangement of pixels. Fast and exact.

The inputs and outputs that matter

  • image (IMAGE) - the picture to mirror.
  • flip_method (dropdown) - which way to flip. Horizontal is the everyday one (mirroring a portrait, flipping a pose reference); vertical mirrors top-to-bottom, which you'll want far less often.

Output: the flipped IMAGE.

How to install it

Nothing to install - it's built into ComfyUI, available out of the box in the image/transform category. Not seeing it? Update ComfyUI; older builds may predate it.

Common issues & troubleshooting

A horizontal flip changed my subject's "handedness." That's expected and it's the classic gotcha - mirroring swaps left and right, so watches move to the other wrist, text reads backwards, and asymmetric logos reverse. If your image has any text or lettering, a horizontal flip will make it mirror-writing. There's no fix except not flipping, or flipping back.

I wanted a rotation, not a flip. These are different operations. A flip mirrors; a rotation turns. If you need 90°/180° turns, use a rotate node - flipping vertically is not the same as rotating 180° (a 180° rotation flips both axes at once).

I'm using it for data augmentation. Horizontal flips are a cheap, safe way to double a reference set or create a mirrored composition variant - just remember the handedness caveat above, especially for anything with faces, hands, or text where the mirrored version can look subtly wrong.

Categoryimage/transform

Inputs (2)

NameTypeDefaultDescription
imageIMAGE
flip_methodCOMBO2 options: x-axis: vertically, y-axis: horizontally

Outputs (1)

NameTypeDescription
IMAGEIMAGE