Nodes/Louis Use/↔️ Image Flip Horizontal
ComfyUI Node

↔️ Image Flip Horizontal

The mirror node — boring, but batch-safe and dependency-free

By LouisLU1997·Created 4 months ago·Updated 2 months ago· 0
↔️ Image Flip Horizontal
  • image
  • image

A horizontal flip is the kind of operation you'd expect to find built into core ComfyUI - and honestly it mostly is, tucked into various image-tool nodes - but sometimes you want it as a clean, single-purpose node you can drop in a wire and know exactly what it does. ↔️ Image Flip Horizontal is exactly that: image in, image out, mirrored left-right. That's the entire spec, and it's all the node claims to be.

It's a one-liner in implementation (a torch flip across the width axis) which means there's nothing to tune, no gotchas, and it runs on anything. The one thing worth noting is that it's batch-safe: if your input tensor has multiple frames - say, a batch of images from this pack's Folder Image Loader - every frame gets flipped, and the batch stays intact on the output. That's the hidden virtue of the single-purpose node over hand-rolling a flip with a crop node inside a loop.

When you'd actually use it

  • Augmentation: flip a dataset or a batch of reference images for training or testing.
  • Mirroring a composition: you generated something and the subject's facing the wrong way for your layout, so you flip the whole image rather than re-render.
  • Fixing a flipped batch: the batch counterpart of "it was backwards and I need it right."

For any of these, it slots between any two nodes and outputs the same image type it took in, so you can't break a graph by adding it.

Installing it

Part of the Louis Use pack:

cd ComfyUI/custom_nodes
git clone https://github.com/LouisLU1997/ComfyUI-louis-use Louis_use

Or "Louis Use" in ComfyUI Manager, then restart. No dependencies beyond core.

Honestly, you might use this node three times in your whole ComfyUI career. It's fine that it exists - small, obvious, zero-config utility nodes are what let you keep a graph legible instead of bending a general-purpose node to do one trivial thing. When you need a mirror, it's right there, and it won't surprise you.

CategoryLouis_use

Inputs (1)

NameTypeDefaultDescription
imageIMAGE

Outputs (1)

NameTypeDescription
imageIMAGE